From 6473d5c7ea9b1f471a399a9def08be16112ecfb5 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 10:25:40 -0400 Subject: [PATCH 01/13] fix: use ranges for error responses instead of default Signed-off-by: Vincent Biret --- .../v1/microsoft-foundry-openapi3.json | 1524 ++++++++++++-- .../v1/microsoft-foundry-openapi3.yaml | 1064 ++++++++-- .../microsoft-foundry-openapi3.json | 1820 ++++++++++++++--- .../microsoft-foundry-openapi3.yaml | 1274 +++++++++--- .../Foundry/src/servicepatterns.tsp | 19 +- 5 files changed, 4763 insertions(+), 938 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index e577097995e9..0a663c520c04 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -147,8 +147,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -305,8 +315,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -403,8 +423,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -474,8 +504,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -612,8 +652,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -691,8 +741,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -770,8 +830,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -860,8 +930,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -939,8 +1019,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1018,8 +1108,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1099,8 +1199,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1175,12 +1285,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -1319,8 +1453,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1371,8 +1515,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1439,12 +1593,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -1525,8 +1703,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1587,8 +1775,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1686,8 +1884,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1788,8 +1996,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1867,8 +2085,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1961,8 +2189,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2055,8 +2293,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2142,8 +2390,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2296,8 +2554,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2393,8 +2661,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2492,8 +2770,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2589,8 +2877,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2696,8 +2994,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2783,8 +3091,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2861,8 +3179,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2932,8 +3260,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2989,8 +3327,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3070,12 +3418,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -3213,8 +3585,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3274,8 +3656,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3344,8 +3736,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3426,8 +3828,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3484,8 +3896,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3537,8 +3959,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3880,8 +4312,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3964,8 +4406,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4055,8 +4507,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4116,8 +4578,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4186,8 +4658,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5479,8 +5961,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5617,8 +6109,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5697,8 +6199,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5757,8 +6269,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5827,8 +6349,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6390,8 +6922,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6478,8 +7020,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6866,8 +7418,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6980,8 +7542,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7054,8 +7626,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7104,13 +7686,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MemoryStoreObject" + "$ref": "#/components/schemas/MemoryStoreObject" + } + } + } + }, + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7276,8 +7868,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7345,8 +7947,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7436,8 +8048,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7503,8 +8125,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7572,8 +8204,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7683,8 +8325,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7778,8 +8430,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7854,8 +8516,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8001,8 +8673,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8098,8 +8780,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8167,8 +8859,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8255,8 +8957,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8372,8 +9084,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10603,8 +11325,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10676,8 +11408,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10728,8 +11470,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10780,8 +11532,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10854,8 +11616,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10928,8 +11700,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10980,8 +11762,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11032,8 +11824,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12209,8 +13011,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12343,8 +13155,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12406,8 +13228,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12472,13 +13304,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Routine" + "$ref": "#/components/schemas/Routine" + } + } + } + }, + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12531,8 +13373,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12665,8 +13517,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12728,8 +13590,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12791,8 +13663,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12864,8 +13746,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13313,8 +14205,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13436,8 +14338,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13505,8 +14417,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13572,8 +14494,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13658,8 +14590,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13728,8 +14670,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13797,12 +14749,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -13969,8 +14945,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14047,8 +15033,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14123,8 +15119,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14202,8 +15208,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14318,8 +15334,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14370,8 +15396,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14414,8 +15450,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14467,8 +15513,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14520,8 +15576,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14687,8 +15753,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14748,8 +15824,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14800,8 +15886,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index 1e7ffd766e91..98844a277525 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -74,8 +74,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -192,8 +198,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -255,8 +267,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -302,8 +320,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -406,8 +430,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -457,8 +487,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateMetadata' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -508,8 +544,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateDeployConfig' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -567,8 +609,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -618,8 +666,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateResults' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -669,8 +723,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PromoteCandidateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -721,8 +781,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -775,12 +841,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -882,8 +958,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -915,8 +997,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -964,12 +1052,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -1022,8 +1120,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteAgentResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1062,8 +1166,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1140,8 +1250,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1207,8 +1323,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1260,8 +1382,14 @@ paths: schema: type: object additionalProperties: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1323,8 +1451,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1386,8 +1520,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1445,8 +1585,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentSessionResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1559,8 +1705,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1624,8 +1776,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SessionDirectoryListResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1692,8 +1850,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1757,8 +1921,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SessionFileWriteResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1827,8 +1997,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1883,8 +2059,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentSessionResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1936,8 +2118,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1984,8 +2172,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2022,8 +2216,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2078,12 +2278,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -2184,8 +2394,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2223,8 +2439,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2272,8 +2494,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteAgentVersionResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2351,8 +2579,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/SessionLogEvent' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2392,8 +2626,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2425,8 +2665,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2654,8 +2900,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2709,8 +2961,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2768,8 +3026,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2808,8 +3072,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2853,8 +3123,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3663,8 +3939,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3767,8 +4049,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3819,8 +4107,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3860,8 +4154,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3905,8 +4205,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4258,8 +4564,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4314,8 +4626,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4556,8 +4874,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Insight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4632,8 +4956,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedInsight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4680,8 +5010,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Insight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4715,8 +5051,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4838,8 +5180,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4882,8 +5230,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4941,8 +5295,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4984,8 +5344,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteMemoryStoreResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5028,8 +5394,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5099,8 +5471,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5160,8 +5538,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5209,8 +5593,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteMemoryResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5319,8 +5709,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5381,8 +5777,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreUpdateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5425,8 +5827,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreDeleteScopeResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5481,8 +5889,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreSearchResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5556,8 +5970,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreUpdateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7034,8 +7454,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7082,8 +7508,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListPaginatedFineTuningJobsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7118,8 +7550,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7151,8 +7589,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7200,8 +7644,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListFineTuningJobCheckpointsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7249,8 +7699,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListFineTuningJobEventsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7282,8 +7738,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7315,8 +7777,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8102,8 +8570,14 @@ paths: application/json: schema: $ref: '#/components/schemas/RedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8203,8 +8677,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8242,8 +8722,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8286,8 +8772,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8320,8 +8812,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8419,8 +8917,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8458,8 +8962,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8497,8 +9007,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DispatchRoutineResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8542,8 +9058,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8826,8 +9348,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ScheduleRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8920,8 +9448,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8964,8 +9498,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Skill' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9007,8 +9547,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Skill' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9062,8 +9608,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteSkillResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9107,8 +9659,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9151,12 +9709,22 @@ paths: application/json: schema: $ref: '#/components/schemas/SkillVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - Skills=V1Preview @@ -9275,8 +9843,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9325,8 +9899,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SkillVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9374,8 +9954,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteSkillVersionResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9425,8 +10011,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9514,8 +10106,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9547,8 +10145,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9574,8 +10178,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9608,8 +10218,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9642,8 +10258,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9765,8 +10387,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9804,8 +10432,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9838,8 +10472,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index ba5175244008..4995eb526d0f 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -156,8 +156,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -314,8 +324,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -412,8 +432,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -483,8 +513,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -621,8 +661,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -700,8 +750,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -779,8 +839,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -869,8 +939,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -948,8 +1028,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1027,8 +1117,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1108,8 +1208,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1184,12 +1294,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -1328,8 +1462,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1445,8 +1589,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1502,8 +1656,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1570,12 +1734,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -1656,8 +1844,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1718,8 +1916,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1817,8 +2025,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1919,8 +2137,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -1998,8 +2226,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2092,8 +2330,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2186,8 +2434,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2273,8 +2531,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2427,8 +2695,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2519,13 +2797,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SessionDirectoryListResponse" + "$ref": "#/components/schemas/SessionDirectoryListResponse" + } + } + } + }, + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2623,8 +2911,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2720,8 +3018,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2827,8 +3135,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2914,8 +3232,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -2992,8 +3320,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3063,8 +3401,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3120,8 +3468,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3262,8 +3620,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3340,8 +3708,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3416,12 +3794,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -3559,8 +3961,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3620,8 +4032,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3690,8 +4112,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3763,8 +4195,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3909,8 +4351,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -3996,8 +4448,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4098,8 +4560,18 @@ "200": { "description": "The request has succeeded." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4185,8 +4657,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4296,8 +4778,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4383,8 +4875,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4492,8 +4994,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4550,8 +5062,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4603,8 +5125,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -4946,8 +5478,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5030,8 +5572,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5121,8 +5673,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5182,8 +5744,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5252,8 +5824,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -5926,8 +6508,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6064,8 +6656,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6144,8 +6746,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6205,8 +6817,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6275,8 +6897,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6445,8 +7077,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -6712,8 +7354,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7758,8 +8410,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7896,8 +8558,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -7976,8 +8648,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8036,8 +8718,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8106,8 +8798,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8669,8 +9371,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -8757,8 +9469,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9145,8 +9867,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9259,8 +9991,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9333,8 +10075,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9409,8 +10161,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9474,8 +10236,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9548,8 +10320,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9605,8 +10387,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9657,13 +10449,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MemoryStoreObject" + "$ref": "#/components/schemas/MemoryStoreObject" + } + } + } + }, + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9829,8 +10631,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9898,8 +10710,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -9989,8 +10811,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10056,8 +10888,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10125,8 +10967,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10236,8 +11088,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10331,8 +11193,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10407,8 +11279,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10554,8 +11436,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10651,8 +11543,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10720,8 +11622,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10808,8 +11720,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10925,8 +11847,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13156,8 +14088,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13229,8 +14171,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13281,8 +14233,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13333,8 +14295,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13407,8 +14379,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13481,8 +14463,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13533,8 +14525,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13585,8 +14587,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14786,8 +15798,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14920,8 +15942,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14983,8 +16015,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15049,13 +16091,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Routine" + "$ref": "#/components/schemas/Routine" + } + } + } + }, + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15108,8 +16160,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15242,8 +16304,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15305,8 +16377,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15368,8 +16450,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15441,8 +16533,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15890,8 +16992,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16013,8 +17125,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16082,8 +17204,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16149,8 +17281,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16235,8 +17377,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16305,8 +17457,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16374,12 +17536,36 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ApiErrorResponse" + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] + } + } + } + }, + "5XX": { + "description": "Server error", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "$ref": "#/components/schemas/ApiErrorResponse" + }, + { + "$ref": "#/components/schemas/ApiErrorResponse" + } + ] } } } @@ -16546,8 +17732,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16624,8 +17820,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16700,8 +17906,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16779,8 +17995,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16895,8 +18121,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16947,8 +18183,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16991,8 +18237,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -17044,8 +18300,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -17097,8 +18363,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -17264,8 +18540,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -17325,8 +18611,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -17377,8 +18673,18 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful. " }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index b567cc0e3b74..6b2cc3e2efce 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -77,8 +77,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -195,8 +201,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -258,8 +270,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -305,8 +323,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -409,8 +433,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -460,8 +490,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateMetadata' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -511,8 +547,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateDeployConfig' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -570,8 +612,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -621,8 +669,14 @@ paths: application/json: schema: $ref: '#/components/schemas/CandidateResults' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -672,8 +726,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PromoteCandidateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -724,8 +784,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OptimizationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -778,12 +844,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -885,8 +961,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -969,8 +1051,14 @@ paths: content: application/json: schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1005,8 +1093,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1054,12 +1148,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -1112,8 +1216,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteAgentResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1152,8 +1262,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1230,8 +1346,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1297,8 +1419,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1350,8 +1478,14 @@ paths: schema: type: object additionalProperties: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1413,8 +1547,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1476,8 +1616,14 @@ paths: content: '*/*': schema: {} - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1535,8 +1681,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentSessionResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1649,8 +1801,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1714,8 +1872,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SessionDirectoryListResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1782,8 +1946,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1847,8 +2017,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SessionFileWriteResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1917,8 +2093,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -1973,8 +2155,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentSessionResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2026,8 +2214,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2074,8 +2268,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2112,8 +2312,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2218,8 +2424,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2268,8 +2480,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerOperationObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2321,12 +2539,22 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -2427,8 +2655,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2466,8 +2700,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2515,8 +2755,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteAgentVersionResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2562,8 +2808,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2671,8 +2923,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2730,8 +2988,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerOperationObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2814,8 +3078,14 @@ paths: responses: '200': description: The request has succeeded. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2873,8 +3143,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerOperationObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -2949,8 +3225,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerOperationObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3008,8 +3290,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentContainerOperationObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3105,8 +3393,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/SessionLogEvent' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3146,8 +3440,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3179,8 +3479,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3408,8 +3714,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3463,8 +3775,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3522,8 +3840,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3562,8 +3886,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -3607,8 +3937,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DataGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4027,8 +4363,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4131,8 +4473,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4183,8 +4531,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4223,8 +4577,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4268,8 +4628,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4374,8 +4740,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -4541,8 +4913,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteRunResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5193,8 +5571,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5297,8 +5681,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5349,8 +5739,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5390,8 +5786,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5435,8 +5837,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorGenerationJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5788,8 +6196,14 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -5844,8 +6258,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6086,8 +6506,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Insight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6162,8 +6588,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedInsight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6210,8 +6642,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Insight' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6264,8 +6702,14 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedManagedAgentIdentityBlueprint' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6305,8 +6749,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ManagedAgentIdentityBlueprint' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6352,8 +6802,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ManagedAgentIdentityBlueprint' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6389,8 +6845,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6425,8 +6887,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6548,8 +7016,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6592,8 +7066,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6651,8 +7131,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6694,8 +7180,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteMemoryStoreResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6738,8 +7230,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6809,8 +7307,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6870,8 +7374,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -6919,8 +7429,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteMemoryResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7029,8 +7545,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7091,8 +7613,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreUpdateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7135,8 +7663,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreDeleteScopeResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7191,8 +7725,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreSearchResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7266,8 +7806,14 @@ paths: application/json: schema: $ref: '#/components/schemas/MemoryStoreUpdateResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8744,8 +9290,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8792,8 +9344,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListPaginatedFineTuningJobsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8828,8 +9386,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8861,8 +9425,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8910,8 +9480,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListFineTuningJobCheckpointsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8959,8 +9535,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ListFineTuningJobEventsResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8992,8 +9574,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9025,8 +9613,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.FineTuningJob' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9836,8 +10430,14 @@ paths: application/json: schema: $ref: '#/components/schemas/RedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9937,8 +10537,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9976,8 +10582,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10020,8 +10632,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10054,8 +10672,14 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10153,8 +10777,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10192,8 +10822,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10231,8 +10867,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DispatchRoutineResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10276,8 +10918,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Routine' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10560,8 +11208,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ScheduleRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10654,8 +11308,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10698,8 +11358,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Skill' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10741,8 +11407,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Skill' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10796,8 +11468,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteSkillResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10841,8 +11519,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10885,12 +11569,22 @@ paths: application/json: schema: $ref: '#/components/schemas/SkillVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error content: application/json: schema: - $ref: '#/components/schemas/ApiErrorResponse' + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/ApiErrorResponse' + - $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - Skills=V1Preview @@ -11009,8 +11703,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11059,8 +11759,14 @@ paths: application/json: schema: $ref: '#/components/schemas/SkillVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11108,8 +11814,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteSkillVersionResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11159,8 +11871,14 @@ paths: schema: type: string format: binary - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11248,8 +11966,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11281,8 +12005,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11308,8 +12038,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11342,8 +12078,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11376,8 +12118,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11499,8 +12247,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11538,8 +12292,14 @@ paths: application/json: schema: $ref: '#/components/schemas/ToolboxVersionObject' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -11572,8 +12332,14 @@ paths: responses: '204': description: 'There is no content to send for this request, but the headers may be useful. ' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: diff --git a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp index af19f0226a4b..e86e830335a7 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp @@ -30,7 +30,24 @@ op FoundryDataPlaneOperation< Params extends Reflection.Model, Response, ErrorResponse = ApiErrorResponse ->(...Params, ...FoundryDataPlaneApiVersionParameter): Response | ErrorResponse; +>(...Params, ...FoundryDataPlaneApiVersionParameter): Response | { + // so error responses are mapped to 4XX and 5XX and not default + @maxValue(499) + @minValue(400) + @statusCode + statusCode: int32; + + @body + body: ErrorResponse; +} | { + @maxValue(599) + @minValue(500) + @statusCode + statusCode: int32; + + @body + body: ErrorResponse; +}; // ---- Feature opt-in keys & preview headers ---- From 86b89e8c3448dd9f6b8ff639ad2d05385d2880fe Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 10:45:15 -0400 Subject: [PATCH 02/13] fix: use range error for datasets operation Signed-off-by: Vincent Biret --- .../data-plane/Foundry/src/common/models.tsp | 29 +++++++++++++++---- .../Foundry/src/datasets/routes.tsp | 3 +- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp index 3a1861f98d97..8b4adb172df5 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp @@ -12,8 +12,28 @@ model ApiErrorResponse { error: ApiError; } +/** Error response for Azure range errors. */ +alias AzureRangeErrorResponse = + | { + ...Azure.Core.Foundations.ErrorResponse; + + @maxValue(499) + @minValue(400) + @statusCode + statusCode: int32; + } + | { + ...Azure.Core.Foundations.ErrorResponse; + + @maxValue(599) + @minValue(500) + @statusCode + statusCode: int32; + }; + #suppress "@azure-tools/typespec-azure-core/experimental-feature" "Using experimental feature" -@@copyProperties(OpenAI.Error, +@@copyProperties( + OpenAI.Error, { details?: OpenAI.Error[], additionalInfo?: Record, @@ -52,10 +72,9 @@ op OpenAIOperationWithPreview< Params extends Reflection.Model, Response, ErrorResponse = ApiErrorResponse ->( - ...WithConditionalFoundryPreviewHeader, - ...Params, -): Response | ErrorResponse; +>(...WithConditionalFoundryPreviewHeader, ...Params): + | Response + | ErrorResponse; alias AssetBase = { @doc("Asset ID, a unique identifier for the asset") diff --git a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp index 36021401fd79..8dae225a01cd 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp @@ -33,7 +33,8 @@ interface Datasets @Http.path version: string; }, - PendingUploadResponse + PendingUploadResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" From 21108490807ef351b57e5fcec3bc0f42bed75943 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 10:45:28 -0400 Subject: [PATCH 03/13] chore: refreshes generated assets Signed-off-by: Vincent Biret --- .../v1/microsoft-foundry-openapi3.json | 23 +++++++++++++++++-- .../v1/microsoft-foundry-openapi3.yaml | 16 +++++++++++-- .../microsoft-foundry-openapi3.json | 23 +++++++++++++++++-- .../microsoft-foundry-openapi3.yaml | 16 +++++++++++-- 4 files changed, 70 insertions(+), 8 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index 0a663c520c04..fa1bcaf422b2 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -5088,8 +5088,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index 98844a277525..233f25ad686b 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -3388,8 +3388,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index 4995eb526d0f..a74559773da5 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -6254,8 +6254,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index 6b2cc3e2efce..c10ebdcee479 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -4202,8 +4202,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false From 3feb9710079c4c11954f7d44287abf95f9e6a479 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:02:31 -0400 Subject: [PATCH 04/13] chore: refactors error definition to avoid duplication Signed-off-by: Vincent Biret --- .../data-plane/Foundry/src/common/models.tsp | 19 ------ .../Foundry/src/servicepatterns.tsp | 58 +++++++++++-------- 2 files changed, 35 insertions(+), 42 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp index 8b4adb172df5..17dfca844a58 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp @@ -12,25 +12,6 @@ model ApiErrorResponse { error: ApiError; } -/** Error response for Azure range errors. */ -alias AzureRangeErrorResponse = - | { - ...Azure.Core.Foundations.ErrorResponse; - - @maxValue(499) - @minValue(400) - @statusCode - statusCode: int32; - } - | { - ...Azure.Core.Foundations.ErrorResponse; - - @maxValue(599) - @minValue(500) - @statusCode - statusCode: int32; - }; - #suppress "@azure-tools/typespec-azure-core/experimental-feature" "Using experimental feature" @@copyProperties( OpenAI.Error, diff --git a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp index e86e830335a7..e851f085f8a4 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp @@ -16,13 +16,34 @@ alias FoundryDataPlaneApiVersionParameter = { apiVersion: string; }; +/** Error response for Azure range errors. */ +alias AzureRangeErrorResponse = + | { + ...ErrorResponseParameter; + + @maxValue(499) + @minValue(400) + @statusCode + statusCode: int32; + } + | { + ...ErrorResponseParameter; + + @maxValue(599) + @minValue(500) + @statusCode + statusCode: int32; + }; + alias FoundryDataPlaneAzureTraits = Azure.Core.Traits.SupportsClientRequestId & Azure.Core.Traits.NoRepeatableRequests & Azure.Core.Traits.NoConditionalRequests & FoundryDataPlaneApiVersionParameter; -alias FoundryAzureOperations = Azure.Core.ResourceOperations; +alias FoundryAzureOperations = Azure.Core.ResourceOperations< + ExtraTraits & FoundryDataPlaneAzureTraits, + AzureRangeErrorResponse +>; #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "" #suppress "@azure-tools/typespec-azure-core/no-response-body" "" @@ -30,24 +51,9 @@ op FoundryDataPlaneOperation< Params extends Reflection.Model, Response, ErrorResponse = ApiErrorResponse ->(...Params, ...FoundryDataPlaneApiVersionParameter): Response | { - // so error responses are mapped to 4XX and 5XX and not default - @maxValue(499) - @minValue(400) - @statusCode - statusCode: int32; - - @body - body: ErrorResponse; -} | { - @maxValue(599) - @minValue(500) - @statusCode - statusCode: int32; - - @body - body: ErrorResponse; -}; +>(...Params, ...FoundryDataPlaneApiVersionParameter): + | Response + | AzureRangeErrorResponse; // ---- Feature opt-in keys & preview headers ---- @@ -76,7 +82,9 @@ union FoundryFeaturesOptInKeys { agents_optimization_v1_preview: "AgentsOptimization=V1Preview", } -alias WithRequiredFoundryPreviewHeader = { +alias WithRequiredFoundryPreviewHeader = { /** * A feature flag opt-in required when using preview operations or modifying persisted preview resources. */ @@ -84,7 +92,9 @@ alias WithRequiredFoundryPreviewHeader = { +alias WithConditionalFoundryPreviewHeader = { /** * A feature flag opt-in required when using preview operations or modifying persisted preview resources. */ @@ -493,7 +503,9 @@ op deleteJob is FoundryDataPlaneOperatio /** Delete a job (preview). Returns 204 No Content. */ #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Job templates are project-standard operations" @delete -op deleteJobPreview is FoundryDataPlanePreviewOperation< +op deleteJobPreview is FoundryDataPlanePreviewOperation< AreaPreviewLabel, { /** The ID of the job to delete. */ From 6dd371d1f43328269270252cb003fad6e40d592c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:04:45 -0400 Subject: [PATCH 05/13] fix: use FoundryAzureOperations for resource operations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../data-plane/Foundry/src/deployments/routes.tsp | 6 +----- .../data-plane/Foundry/src/evaluations/routes.tsp | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/deployments/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/deployments/routes.tsp index 337fea844ae3..52a56e40ca0d 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/deployments/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/deployments/routes.tsp @@ -5,11 +5,7 @@ using Azure.Core.Traits; namespace Azure.AI.Projects; -alias DeploymentServiceTraits = SupportsClientRequestId & - NoRepeatableRequests & - NoConditionalRequests; - -alias DeploymentOperations = Azure.Core.ResourceOperations; +alias DeploymentOperations = FoundryAzureOperations<{}>; @tag("Deployments") interface Deployments { diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp index 70823696263c..d2f9395fce80 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp @@ -1,16 +1,11 @@ import "./models.tsp"; using TypeSpec.Http; -using Azure.Core.Traits; using TypeSpec.Versioning; namespace Azure.AI.Projects; -alias ServiceTraits = SupportsClientRequestId & - NoRepeatableRequests & - NoConditionalRequests; - -alias EvaluationsOperations = Azure.Core.ResourceOperations; +alias EvaluationsOperations = FoundryAzureOperations<{}>; @route("evaluations") @removed(Versions.v1) From 76fcaab2f06e7d02f1922a16e39ac1e06311d9ce Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:04:46 -0400 Subject: [PATCH 06/13] chore: refresh Foundry OpenAPI descriptions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../v1/microsoft-foundry-openapi3.json | 187 +++++++----- .../v1/microsoft-foundry-openapi3.yaml | 112 ++++--- .../microsoft-foundry-openapi3.json | 279 +++++++++++++----- .../microsoft-foundry-openapi3.yaml | 176 ++++++++--- 4 files changed, 522 insertions(+), 232 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index fa1bcaf422b2..a2ea3fb28b17 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -1290,14 +1290,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1307,14 +1300,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1598,14 +1584,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1615,14 +1594,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -3423,14 +3395,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -3440,14 +3405,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -4047,8 +4005,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -4113,8 +4090,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -4179,8 +4175,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5205,8 +5220,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5271,8 +5305,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -14773,14 +14826,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -14790,14 +14836,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index 233f25ad686b..baa0b924fd09 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -846,17 +846,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -1057,17 +1053,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -2283,17 +2275,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -2719,8 +2707,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedConnection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -2759,8 +2759,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Connection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -2799,8 +2811,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Connection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3462,8 +3486,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDeployment' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3502,8 +3538,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Deployment' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9726,17 +9774,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - Skills=V1Preview diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index a74559773da5..30913937eb02 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -1299,14 +1299,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1316,14 +1309,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1739,14 +1725,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -1756,14 +1735,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -3799,14 +3771,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -3816,14 +3781,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -5213,8 +5171,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5279,8 +5256,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5345,8 +5341,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6371,8 +6386,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6437,8 +6471,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7703,8 +7756,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7766,8 +7838,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7820,8 +7911,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7876,8 +7986,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -17560,14 +17689,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } @@ -17577,14 +17699,7 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ApiErrorResponse" - }, - { - "$ref": "#/components/schemas/ApiErrorResponse" - } - ] + "$ref": "#/components/schemas/ApiErrorResponse" } } } diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index c10ebdcee479..d4a4d2d94b69 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -849,17 +849,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -1153,17 +1149,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -2544,17 +2536,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - CodeAgents=V1Preview @@ -3533,8 +3521,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedConnection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3573,8 +3573,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Connection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3613,8 +3625,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Connection' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4276,8 +4300,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDeployment' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4316,8 +4352,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Deployment' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5129,8 +5177,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluation' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5167,8 +5227,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Evaluation' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5200,8 +5272,20 @@ paths: description: An opaque, globally-unique, client-generated string identifier for the request. schema: $ref: '#/components/schemas/Azure.Core.uuid' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5234,8 +5318,20 @@ paths: description: An opaque, globally-unique, client-generated string identifier for the request. schema: $ref: '#/components/schemas/Azure.Core.uuid' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11586,17 +11682,13 @@ paths: content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' 5XX: description: Server error content: application/json: schema: - anyOf: - - $ref: '#/components/schemas/ApiErrorResponse' - - $ref: '#/components/schemas/ApiErrorResponse' + $ref: '#/components/schemas/ApiErrorResponse' x-ms-foundry-meta: required_previews: - Skills=V1Preview From 31f7d96ddde4769fcdc00c3fafb1e2abec9f8f45 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:46:47 -0400 Subject: [PATCH 07/13] fix(ai-foundry): use range errors for version list operations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../data-plane/Foundry/src/evaluators/routes.tsp | 2 +- .../data-plane/Foundry/src/servicepatterns.tsp | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp index 5ab701224d3d..43b1aa2296a3 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp @@ -28,7 +28,7 @@ interface Evaluators { @Rest.actionSeparator("/") @Http.get @list - listVersions is Azure.Core.StandardResourceOperations.ResourceAction< + listVersions is FoundryStandardResourceOperations.ResourceAction< EvaluatorVersion, ListEvaluatorVersionsParameters & EvaluatorsPreviewHeader, Azure.Core.Page diff --git a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp index e851f085f8a4..db71e871bef1 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp @@ -45,6 +45,13 @@ alias FoundryAzureOperations = Azure.Core.ResourceOperations< AzureRangeErrorResponse >; +alias FoundryStandardResourceOperations = Azure.Core.ResourceOperations< + Azure.Core.Traits.NoConditionalRequests & + Azure.Core.Traits.NoRepeatableRequests & + Azure.Core.Traits.NoClientRequestId, + AzureRangeErrorResponse +>; + #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "" #suppress "@azure-tools/typespec-azure-core/no-response-body" "" op FoundryDataPlaneOperation< @@ -241,7 +248,7 @@ interface VersionedOperations< @Rest.actionSeparator("/") @get @list - listVersions is Azure.Core.StandardResourceOperations.ResourceAction< + listVersions is FoundryStandardResourceOperations.ResourceAction< TEntityType, TListVersionsParameters, Azure.Core.Page From 7ab1c357fec47cf4825c320436c7f93f960baa39 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:46:47 -0400 Subject: [PATCH 08/13] chore(ai-foundry): refresh version list descriptions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../v1/microsoft-foundry-openapi3.json | 92 ++++++++++++-- .../v1/microsoft-foundry-openapi3.yaml | 64 ++++++++-- .../microsoft-foundry-openapi3.json | 115 ++++++++++++++++-- .../microsoft-foundry-openapi3.yaml | 80 ++++++++++-- 4 files changed, 315 insertions(+), 36 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index a2ea3fb28b17..197abd2ae572 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -4778,8 +4778,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6614,8 +6633,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7208,8 +7246,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9321,8 +9378,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index baa0b924fd09..06c859ee87f3 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -3210,8 +3210,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4384,8 +4396,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4756,8 +4780,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedIndex' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6138,8 +6174,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index 30913937eb02..0889870ada43 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -5944,8 +5944,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7081,8 +7100,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9139,8 +9177,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9733,8 +9790,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12160,8 +12236,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index d4a4d2d94b69..7deb21cadddc 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -4024,8 +4024,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4756,8 +4768,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationSuiteVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6064,8 +6088,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6436,8 +6472,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedIndex' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8022,8 +8070,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false From 46a2d36f4391300c18c6486eac5a3d8204f124f9 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:49:41 -0400 Subject: [PATCH 09/13] fix(ai-foundry): use range errors for Foundry resource operations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../data-plane/Foundry/src/datasets/routes.tsp | 3 ++- .../Foundry/src/evaluation-rules/routes.tsp | 12 ++++++++---- .../src/evaluation-taxonomies/routes.tsp | 15 ++++++++++----- .../Foundry/src/evaluations/routes.tsp | 6 ++++-- .../Foundry/src/evaluators/routes.tsp | 15 ++++++++++----- .../data-plane/Foundry/src/models/routes.tsp | 18 ++++++++++++------ .../Foundry/src/red-teams/routes.tsp | 6 ++++-- .../Foundry/src/schedules/routes.tsp | 15 ++++++++++----- .../data-plane/Foundry/src/servicepatterns.tsp | 12 ++++++++---- 9 files changed, 68 insertions(+), 34 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp index 8dae225a01cd..43aeae9c3830 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp @@ -51,6 +51,7 @@ interface Datasets @Http.path version: string; }, - AssetCredentialResponse + AssetCredentialResponse, + ErrorResponse = AzureRangeErrorResponse >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp index 08ef21e5a1ce..e08e6c53e5aa 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp @@ -30,7 +30,8 @@ interface EvaluationRules { get is Azure.Core.Foundations.ResourceOperation< EvaluationRule, {}, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; // DELETE /evaluationrules/{id} @@ -39,7 +40,8 @@ interface EvaluationRules { delete is Azure.Core.Foundations.ResourceOperation< EvaluationRule, {}, - Http.NoContentResponse + Http.NoContentResponse, + ErrorResponse = AzureRangeErrorResponse >; // PUT /evaluationrules/{id} @@ -54,7 +56,8 @@ interface EvaluationRules { @Http.bodyRoot evaluationRule: EvaluationRule; }, - Azure.Core.Foundations.ResourceCreatedOrOkResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse, + ErrorResponse = AzureRangeErrorResponse >; // GET /evaluationrules @@ -63,6 +66,7 @@ interface EvaluationRules { list is Azure.Core.Foundations.ResourceList< EvaluationRule, EvaluationRulesFilterQueryParams, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp index 078711243b19..5ca228432264 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp @@ -26,7 +26,8 @@ interface EvaluationTaxonomies { { ...EvaluationTaxonomiesPreviewHeader; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; @doc("List evaluation taxonomies") @@ -35,7 +36,8 @@ interface EvaluationTaxonomies { EvaluationTaxonomy, EvaluationTaxonomiesFilterQueryParamsTraits & EvaluationTaxonomiesPreviewHeader, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; @doc("Delete an evaluation taxonomy by name.") @@ -45,7 +47,8 @@ interface EvaluationTaxonomies { { ...EvaluationTaxonomiesPreviewHeader; }, - Http.NoContentResponse + Http.NoContentResponse, + ErrorResponse = AzureRangeErrorResponse >; @doc("Create an evaluation taxonomy.") @@ -63,7 +66,8 @@ interface EvaluationTaxonomies { @body taxonomy: EvaluationTaxonomy; }, - Azure.Core.Foundations.ResourceCreatedOrOkResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse, + ErrorResponse = AzureRangeErrorResponse >; @doc("Update an evaluation taxonomy.") @@ -81,6 +85,7 @@ interface EvaluationTaxonomies { @body taxonomy: EvaluationTaxonomy; }, - OkResponse & EvaluationTaxonomy + OkResponse & EvaluationTaxonomy, + ErrorResponse = AzureRangeErrorResponse >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp index d2f9395fce80..805f7f0cc220 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp @@ -26,7 +26,8 @@ interface Evaluations { @body evaluation: Evaluation; }, - ResourceCreatedResponse + ResourceCreatedResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @@ -39,7 +40,8 @@ interface Evaluations { @body evaluation: AgentEvaluationRequest; }, - ResourceCreatedResponse + ResourceCreatedResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp index 43b1aa2296a3..fb1bf52e28c9 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp @@ -41,7 +41,8 @@ interface Evaluators { listLatestVersions is Azure.Core.Foundations.ResourceList< EvaluatorVersion, ListEvaluatorVersionsParameters & EvaluatorsPreviewHeader, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; // GET /evaluators/{name}/versions/{version} @@ -63,7 +64,8 @@ interface Evaluators { @Http.path version: string; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; // DELETE /evaluators/{name}/versions/{version} @@ -83,7 +85,8 @@ interface Evaluators { @Http.path version: string; }, - Http.NoContentResponse + Http.NoContentResponse, + ErrorResponse = AzureRangeErrorResponse >; // POST /evaluators/{evaluatorName}/versions @@ -99,7 +102,8 @@ interface Evaluators { @Http.bodyRoot evaluator_version: EvaluatorVersion; }, - Azure.Core.Foundations.ResourceCreatedResponse + Azure.Core.Foundations.ResourceCreatedResponse, + ErrorResponse = AzureRangeErrorResponse >; // PATCH /evaluators/{evaluatorName}/versions/{version} @@ -121,7 +125,8 @@ interface Evaluators { @Http.bodyRoot evaluator_version: EvaluatorVersion; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp index 897a107a87ba..d8c5be6f851f 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp @@ -43,7 +43,8 @@ interface Models @path version: string; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -63,7 +64,8 @@ interface Models @path version: string; }, - OkResponse + OkResponse, + ErrorResponse = AzureRangeErrorResponse >; // The method name `createOrUpdateVersion` is required by the `VersionedOperations` interface @@ -78,7 +80,8 @@ interface Models createOrUpdateVersion is Azure.Core.Foundations.ResourceOperation< ModelVersion, InputParameters & ModelsPreviewHeader, - Azure.Core.Foundations.ResourceCreatedOrOkResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom async creation action" @@ -102,7 +105,8 @@ interface Models @bodyRoot model_version: ModelVersion; }, - CreateModelVersionAsyncResponse + CreateModelVersionAsyncResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom pending upload action" @@ -125,7 +129,8 @@ interface Models @bodyRoot pending_upload_request: ModelPendingUploadRequest; }, - ModelPendingUploadResponse + ModelPendingUploadResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom credential action" @@ -148,6 +153,7 @@ interface Models @bodyRoot credential_request: ModelCredentialRequest; }, - AssetCredentialResponse + AssetCredentialResponse, + ErrorResponse = AzureRangeErrorResponse >; } \ No newline at end of file diff --git a/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp index 7c259ef4b211..dfb47f59c20c 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp @@ -16,7 +16,8 @@ interface RedTeams { { ...RedTeamsPreviewHeader; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @@ -25,7 +26,8 @@ interface RedTeams { list is Azure.Core.Foundations.ResourceList< RedTeam, RedTeamsPreviewHeader, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp index cd9023956b9a..51013de50485 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp @@ -35,7 +35,8 @@ interface Schedules { { ...SchedulesPreviewHeader; }, - Http.NoContentResponse + Http.NoContentResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @@ -45,7 +46,8 @@ interface Schedules { { ...SchedulesPreviewHeader; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @@ -54,7 +56,8 @@ interface Schedules { list is Azure.Core.Foundations.ResourceList< Schedule, SchedulesFilterQueryParams & SchedulesPreviewHeader, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @@ -63,7 +66,8 @@ interface Schedules { createOrUpdate is Azure.Core.Foundations.ResourceOperation< Schedule, SchedulesCreateOrUpdateParams, - Azure.Core.Foundations.ResourceCreatedOrOkResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @@ -91,6 +95,7 @@ interface Schedules { listRuns is Azure.Core.Foundations.ResourceList< ScheduleRun, SchedulesFilterQueryParams & SchedulesPreviewHeader, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp index db71e871bef1..9db281058253 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp @@ -260,7 +260,8 @@ interface VersionedOperations< listLatest is Azure.Core.Foundations.ResourceList< TEntityType, TListLatestParameters, - Azure.Core.Page + Azure.Core.Page, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -276,7 +277,8 @@ interface VersionedOperations< @path version: string; }, - Azure.Core.Foundations.ResourceOkResponse + Azure.Core.Foundations.ResourceOkResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -293,7 +295,8 @@ interface VersionedOperations< @path version: string; }, - NoContentResponse + NoContentResponse, + ErrorResponse = AzureRangeErrorResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -305,7 +308,8 @@ interface VersionedOperations< createOrUpdateVersion is Azure.Core.Foundations.ResourceOperation< TEntityType, TInputParameters, - Azure.Core.Foundations.ResourceCreatedOrOkResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse, + ErrorResponse = AzureRangeErrorResponse >; } From 1d271ec276587b01daaf92b4e6b1048f756fcd82 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:49:42 -0400 Subject: [PATCH 10/13] chore(ai-foundry): refresh resource operation descriptions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../v1/microsoft-foundry-openapi3.json | 853 +++++++++++++-- .../v1/microsoft-foundry-openapi3.yaml | 592 +++++++++-- .../microsoft-foundry-openapi3.json | 991 ++++++++++++++++-- .../microsoft-foundry-openapi3.yaml | 688 ++++++++++-- 4 files changed, 2802 insertions(+), 322 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index 197abd2ae572..07b41f37831f 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -4724,8 +4724,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -4860,8 +4879,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -4914,8 +4952,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -4985,8 +5042,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5059,8 +5135,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5418,8 +5513,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5472,8 +5586,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5517,8 +5650,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5591,8 +5743,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5679,8 +5850,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5745,8 +5935,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5802,8 +6011,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5876,8 +6104,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -5951,8 +6198,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6530,13 +6796,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PagedEvaluatorVersion" + "$ref": "#/components/schemas/PagedEvaluatorVersion" + } + } + } + }, + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6716,8 +7001,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6801,8 +7105,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6867,8 +7190,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6940,8 +7282,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7192,8 +7553,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7328,8 +7708,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7382,8 +7781,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7453,8 +7871,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9312,8 +9749,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9472,8 +9928,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9543,8 +10018,27 @@ "200": { "description": "The request has succeeded." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9631,8 +10125,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9745,8 +10258,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9836,8 +10368,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9926,8 +10477,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -13029,8 +13599,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -13095,8 +13684,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -13977,8 +14585,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -14036,8 +14663,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -14100,8 +14746,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -14174,8 +14839,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -14271,8 +14955,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index 06c859ee87f3..e85238e8d9d3 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -3177,8 +3177,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3261,8 +3273,20 @@ paths: application/json: schema: $ref: '#/components/schemas/DatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3295,8 +3319,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3339,8 +3375,20 @@ paths: application/json: schema: $ref: '#/components/schemas/DatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3385,8 +3433,20 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3610,8 +3670,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3643,8 +3715,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3671,8 +3755,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3717,8 +3813,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3773,8 +3881,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3814,8 +3934,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3850,8 +3982,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3896,8 +4040,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -3943,8 +4099,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4335,8 +4503,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4448,8 +4628,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4501,8 +4693,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4543,8 +4747,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4589,8 +4805,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4747,8 +4975,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedIndex' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4831,8 +5071,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Index' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4865,8 +5117,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4909,8 +5173,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Index' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6133,8 +6409,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6233,8 +6521,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6278,8 +6578,20 @@ paths: responses: '200': description: The request has succeeded. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6333,8 +6645,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6407,8 +6731,20 @@ paths: format: uri nullable: true description: URL to the operation result, or null if the operation is still in progress. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6464,8 +6800,20 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6520,8 +6868,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelPendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8596,8 +8956,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedRedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8637,8 +9009,20 @@ paths: application/json: schema: $ref: '#/components/schemas/RedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9218,8 +9602,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedSchedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9255,8 +9651,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9295,8 +9703,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Schedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9341,8 +9761,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Schedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -9403,8 +9835,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedScheduleRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index 0889870ada43..fdd8b367846f 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -5890,8 +5890,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6026,8 +6045,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6080,8 +6118,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6151,8 +6208,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -6225,8 +6301,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7049,8 +7144,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7264,8 +7378,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7315,8 +7448,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7383,8 +7535,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7553,8 +7724,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7607,8 +7797,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7652,8 +7861,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -7726,8 +7954,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8085,8 +8332,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8138,8 +8404,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8223,8 +8508,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8289,8 +8593,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8346,8 +8669,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8420,8 +8762,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -8495,8 +8856,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9074,13 +9454,32 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PagedEvaluatorVersion" + "$ref": "#/components/schemas/PagedEvaluatorVersion" + } + } + } + }, + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" } } } }, - "default": { - "description": "An unexpected error response.", + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9260,8 +9659,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9345,8 +9763,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9411,8 +9848,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9484,8 +9940,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9736,8 +10211,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9872,8 +10366,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9926,8 +10439,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -9997,8 +10529,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12170,8 +12721,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12330,8 +12900,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12401,8 +12990,27 @@ "200": { "description": "The request has succeeded." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12489,8 +13097,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12603,8 +13230,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12694,8 +13340,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -12784,8 +13449,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -15911,8 +16595,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -15977,8 +16680,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -16859,8 +17581,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -16918,8 +17659,27 @@ "204": { "description": "There is no content to send for this request, but the headers may be useful." }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -16982,8 +17742,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -17056,8 +17835,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, @@ -17153,8 +17951,27 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "headers": { + "x-ms-error-code": { + "required": false, + "description": "String error code indicating what went wrong.", + "schema": { + "type": "string" + } + } + }, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Azure.Core.Foundations.ErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "headers": { "x-ms-error-code": { "required": false, diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index 7deb21cadddc..5e55e50554b8 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -3991,8 +3991,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedDatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4075,8 +4087,20 @@ paths: application/json: schema: $ref: '#/components/schemas/DatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4109,8 +4133,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4153,8 +4189,20 @@ paths: application/json: schema: $ref: '#/components/schemas/DatasetVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4199,8 +4247,20 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4737,8 +4797,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationSuiteVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4871,8 +4943,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4903,8 +4987,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -4945,8 +5041,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationSuiteVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5053,8 +5161,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5086,8 +5206,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5114,8 +5246,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5160,8 +5304,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationRule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5379,8 +5535,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Evaluation' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5411,8 +5579,20 @@ paths: application/json: schema: $ref: '#/components/schemas/AgentEvaluation' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5465,8 +5645,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5506,8 +5698,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5542,8 +5746,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5588,8 +5804,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -5635,8 +5863,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluationTaxonomy' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6027,8 +6267,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedEvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6140,8 +6392,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6193,8 +6457,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6235,8 +6511,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6281,8 +6569,20 @@ paths: application/json: schema: $ref: '#/components/schemas/EvaluatorVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6439,8 +6739,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedIndex' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6523,8 +6835,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Index' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6557,8 +6881,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -6601,8 +6937,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Index' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8029,8 +8377,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8129,8 +8489,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8174,8 +8546,20 @@ paths: responses: '200': description: The request has succeeded. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8229,8 +8613,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelVersion' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8303,8 +8699,20 @@ paths: format: uri nullable: true description: URL to the operation result, or null if the operation is still in progress. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8360,8 +8768,20 @@ paths: application/json: schema: $ref: '#/components/schemas/AssetCredentialResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -8416,8 +8836,20 @@ paths: application/json: schema: $ref: '#/components/schemas/ModelPendingUploadResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -10516,8 +10948,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedRedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -10557,8 +11001,20 @@ paths: application/json: schema: $ref: '#/components/schemas/RedTeam' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11138,8 +11594,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedSchedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11175,8 +11643,20 @@ paths: responses: '204': description: There is no content to send for this request, but the headers may be useful. - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11215,8 +11695,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Schedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11261,8 +11753,20 @@ paths: application/json: schema: $ref: '#/components/schemas/Schedule' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false @@ -11323,8 +11827,20 @@ paths: application/json: schema: $ref: '#/components/schemas/PagedScheduleRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + headers: + x-ms-error-code: + required: false + description: String error code indicating what went wrong. + schema: + type: string + content: + application/json: + schema: + $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse' + 5XX: + description: Server error headers: x-ms-error-code: required: false From 6587d433762efa3df4b7dc7e0e72f17950c1f95c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:53:52 -0400 Subject: [PATCH 11/13] fix(ai-foundry): centralize range error operation templates Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Foundry/src/datasets/routes.tsp | 10 ++-- .../Foundry/src/evaluation-rules/routes.tsp | 20 +++---- .../src/evaluation-taxonomies/routes.tsp | 25 ++++---- .../Foundry/src/evaluations/routes.tsp | 10 ++-- .../Foundry/src/evaluators/routes.tsp | 25 ++++---- .../data-plane/Foundry/src/models/routes.tsp | 30 ++++------ .../Foundry/src/red-teams/routes.tsp | 10 ++-- .../Foundry/src/schedules/routes.tsp | 25 ++++---- .../Foundry/src/servicepatterns.tsp | 58 +++++++++++++++---- 9 files changed, 108 insertions(+), 105 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp index 43aeae9c3830..a38a6797a04d 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/datasets/routes.tsp @@ -20,7 +20,7 @@ interface Datasets > { @doc("Start a new or get an existing pending upload of a dataset for a specific version.") @Rest.action("startPendingUpload") - startPendingUploadVersion is Azure.Core.Foundations.ResourceOperation< + startPendingUploadVersion is FoundryResourceOperation< DatasetVersion, { @doc("The pending upload request parameters") @@ -33,8 +33,7 @@ interface Datasets @Http.path version: string; }, - PendingUploadResponse, - ErrorResponse = AzureRangeErrorResponse + PendingUploadResponse >; #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" @@ -43,7 +42,7 @@ interface Datasets @post @Rest.action("credentials") @Rest.actionSeparator("/") - getCredentials is Azure.Core.Foundations.ResourceOperation< + getCredentials is FoundryResourceOperation< DatasetVersion, { @doc("The specific version id of the DatasetVersion to operate on.") @@ -51,7 +50,6 @@ interface Datasets @Http.path version: string; }, - AssetCredentialResponse, - ErrorResponse = AzureRangeErrorResponse + AssetCredentialResponse >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp index e08e6c53e5aa..13ca44a42579 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluation-rules/routes.tsp @@ -27,27 +27,25 @@ alias EvaluationRulesFilterQueryParams = { interface EvaluationRules { // GET /evaluationrules/{id} @doc("Get an evaluation rule.") - get is Azure.Core.Foundations.ResourceOperation< + get is FoundryResourceOperation< EvaluationRule, {}, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; // DELETE /evaluationrules/{id} @doc("Delete an evaluation rule.") @Http.delete - delete is Azure.Core.Foundations.ResourceOperation< + delete is FoundryResourceOperation< EvaluationRule, {}, - Http.NoContentResponse, - ErrorResponse = AzureRangeErrorResponse + Http.NoContentResponse >; // PUT /evaluationrules/{id} @doc("Create or update an evaluation rule.") @Http.put - createOrUpdate is Azure.Core.Foundations.ResourceOperation< + createOrUpdate is FoundryResourceOperation< EvaluationRule, { ...EvaluationRulesPreviewHeader; @@ -56,17 +54,15 @@ interface EvaluationRules { @Http.bodyRoot evaluationRule: EvaluationRule; }, - Azure.Core.Foundations.ResourceCreatedOrOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse >; // GET /evaluationrules @doc("List all evaluation rules.") @Rest.listsResource(EvaluationRule) - list is Azure.Core.Foundations.ResourceList< + list is FoundryResourceList< EvaluationRule, EvaluationRulesFilterQueryParams, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp index 5ca228432264..fcf2c251d453 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluation-taxonomies/routes.tsp @@ -21,40 +21,37 @@ alias EvaluationTaxonomiesFilterQueryParamsTraits = { @tag("Evaluation Taxonomies") interface EvaluationTaxonomies { @doc("Get an evaluation run by name.") - get is Azure.Core.Foundations.ResourceOperation< + get is FoundryResourceOperation< EvaluationTaxonomy, { ...EvaluationTaxonomiesPreviewHeader; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; @doc("List evaluation taxonomies") @Rest.listsResource(EvaluationTaxonomy) - list is Azure.Core.Foundations.ResourceList< + list is FoundryResourceList< EvaluationTaxonomy, EvaluationTaxonomiesFilterQueryParamsTraits & EvaluationTaxonomiesPreviewHeader, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; @doc("Delete an evaluation taxonomy by name.") @Http.delete - delete is Azure.Core.Foundations.ResourceOperation< + delete is FoundryResourceOperation< EvaluationTaxonomy, { ...EvaluationTaxonomiesPreviewHeader; }, - Http.NoContentResponse, - ErrorResponse = AzureRangeErrorResponse + Http.NoContentResponse >; @doc("Create an evaluation taxonomy.") @put @route("/evaluationtaxonomies/{name}") - create is Azure.Core.Foundations.Operation< + create is FoundryOperation< { ...EvaluationTaxonomiesPreviewHeader; @@ -66,14 +63,13 @@ interface EvaluationTaxonomies { @body taxonomy: EvaluationTaxonomy; }, - Azure.Core.Foundations.ResourceCreatedOrOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse >; @doc("Update an evaluation taxonomy.") @patch(#{ implicitOptionality: true }) @route("/evaluationtaxonomies/{name}") - update is Azure.Core.Foundations.Operation< + update is FoundryOperation< { ...EvaluationTaxonomiesPreviewHeader; @@ -85,7 +81,6 @@ interface EvaluationTaxonomies { @body taxonomy: EvaluationTaxonomy; }, - OkResponse & EvaluationTaxonomy, - ErrorResponse = AzureRangeErrorResponse + OkResponse & EvaluationTaxonomy >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp index 805f7f0cc220..95bd5b2b70e5 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluations/routes.tsp @@ -20,28 +20,26 @@ interface Evaluations { @doc("Creates an evaluation run.") @route("runs:run") @post - create is Azure.Core.Foundations.Operation< + create is FoundryOperation< { @doc("Evaluation to be run") @body evaluation: Evaluation; }, - ResourceCreatedResponse, - ErrorResponse = AzureRangeErrorResponse + ResourceCreatedResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @doc("Creates an agent evaluation run.") @route("runs:runAgent") @post - createAgentEvaluation is Azure.Core.Foundations.Operation< + createAgentEvaluation is FoundryOperation< { @doc("Agent evaluation to be run") @body evaluation: AgentEvaluationRequest; }, - ResourceCreatedResponse, - ErrorResponse = AzureRangeErrorResponse + ResourceCreatedResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp index fb1bf52e28c9..8ba3552bf8ea 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/evaluators/routes.tsp @@ -38,11 +38,10 @@ interface Evaluators { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @doc("List the latest version of each evaluator") @Rest.listsResource(EvaluatorVersion) - listLatestVersions is Azure.Core.Foundations.ResourceList< + listLatestVersions is FoundryResourceList< EvaluatorVersion, ListEvaluatorVersionsParameters & EvaluatorsPreviewHeader, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; // GET /evaluators/{name}/versions/{version} @@ -51,7 +50,7 @@ interface Evaluators { "Get the specific version of the {name}. The service returns 404 Not Found error if the {name} does not exist.", EvaluatorVersion ) - getVersion is Azure.Core.Foundations.ResourceOperation< + getVersion is FoundryResourceOperation< EvaluatorVersion, { ...EvaluatorsPreviewHeader; @@ -64,8 +63,7 @@ interface Evaluators { @Http.path version: string; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; // DELETE /evaluators/{name}/versions/{version} @@ -75,7 +73,7 @@ interface Evaluators { EvaluatorVersion ) @Http.delete - deleteVersion is Azure.Core.Foundations.ResourceOperation< + deleteVersion is FoundryResourceOperation< EvaluatorVersion, { ...EvaluatorsPreviewHeader; @@ -85,8 +83,7 @@ interface Evaluators { @Http.path version: string; }, - Http.NoContentResponse, - ErrorResponse = AzureRangeErrorResponse + Http.NoContentResponse >; // POST /evaluators/{evaluatorName}/versions @@ -94,7 +91,7 @@ interface Evaluators { @doc("Create a new {name} with auto incremented version id", EvaluatorVersion) @Rest.segment("versions") @Http.post - createVersion is Azure.Core.Foundations.ResourceOperation< + createVersion is FoundryResourceOperation< EvaluatorVersion, { ...EvaluatorsPreviewHeader; @@ -102,8 +99,7 @@ interface Evaluators { @Http.bodyRoot evaluator_version: EvaluatorVersion; }, - Azure.Core.Foundations.ResourceCreatedResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedResponse >; // PATCH /evaluators/{evaluatorName}/versions/{version} @@ -111,7 +107,7 @@ interface Evaluators { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @doc("Update an existing {name} with the given version id", EvaluatorVersion) @Http.patch(#{ implicitOptionality: true }) - updateVersion is Azure.Core.Foundations.ResourceOperation< + updateVersion is FoundryResourceOperation< EvaluatorVersion, { ...EvaluatorsPreviewHeader; @@ -125,8 +121,7 @@ interface Evaluators { @Http.bodyRoot evaluator_version: EvaluatorVersion; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp index d8c5be6f851f..9873a1880511 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/models/routes.tsp @@ -33,7 +33,7 @@ interface Models ModelVersion ) @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - getVersion is Azure.Core.Foundations.ResourceOperation< + getVersion is FoundryResourceOperation< ModelVersion, { ...ModelsPreviewHeader; @@ -43,8 +43,7 @@ interface Models @path version: string; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -54,7 +53,7 @@ interface Models ) @delete @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - deleteVersion is Azure.Core.Foundations.ResourceOperation< + deleteVersion is FoundryResourceOperation< ModelVersion, { ...ModelsPreviewHeader; @@ -64,8 +63,7 @@ interface Models @path version: string; }, - OkResponse, - ErrorResponse = AzureRangeErrorResponse + OkResponse >; // The method name `createOrUpdateVersion` is required by the `VersionedOperations` interface @@ -77,11 +75,10 @@ interface Models @operationId("Models_updateVersion") @patch @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - createOrUpdateVersion is Azure.Core.Foundations.ResourceOperation< + createOrUpdateVersion is FoundryResourceOperation< ModelVersion, InputParameters & ModelsPreviewHeader, - Azure.Core.Foundations.ResourceCreatedOrOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom async creation action" @@ -89,7 +86,7 @@ interface Models @route("/models/{name}/versions/{version}/createAsync") @post @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - createAsync is Azure.Core.Foundations.Operation< + createAsync is FoundryOperation< { ...ModelsPreviewHeader; @@ -105,8 +102,7 @@ interface Models @bodyRoot model_version: ModelVersion; }, - CreateModelVersionAsyncResponse, - ErrorResponse = AzureRangeErrorResponse + CreateModelVersionAsyncResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom pending upload action" @@ -114,7 +110,7 @@ interface Models @route("/models/{name}/versions/{version}/startPendingUpload") @post @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - startPendingUpload is Azure.Core.Foundations.Operation< + startPendingUpload is FoundryOperation< { ...ModelsPreviewHeader; @@ -129,8 +125,7 @@ interface Models @bodyRoot pending_upload_request: ModelPendingUploadRequest; }, - ModelPendingUploadResponse, - ErrorResponse = AzureRangeErrorResponse + ModelPendingUploadResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Custom credential action" @@ -138,7 +133,7 @@ interface Models @route("/models/{name}/versions/{version}/credentials") @post @extension("x-ms-foundry-meta", ModelsRequiredPreviews) - getCredentials is Azure.Core.Foundations.Operation< + getCredentials is FoundryOperation< { ...ModelsPreviewHeader; @@ -153,7 +148,6 @@ interface Models @bodyRoot credential_request: ModelCredentialRequest; }, - AssetCredentialResponse, - ErrorResponse = AzureRangeErrorResponse + AssetCredentialResponse >; } \ No newline at end of file diff --git a/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp index dfb47f59c20c..9b4721150af1 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/red-teams/routes.tsp @@ -11,23 +11,21 @@ alias RedTeamsPreviewHeader = WithRequiredFoundryPreviewHeader, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("List a redteam by name.") @Rest.listsResource(RedTeam) - list is Azure.Core.Foundations.ResourceList< + list is FoundryResourceList< RedTeam, RedTeamsPreviewHeader, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" diff --git a/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp b/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp index 51013de50485..7358f82e74c2 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/schedules/routes.tsp @@ -30,44 +30,40 @@ interface Schedules { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("Delete a schedule.") @Http.delete - delete is Azure.Core.Foundations.ResourceOperation< + delete is FoundryResourceOperation< Schedule, { ...SchedulesPreviewHeader; }, - Http.NoContentResponse, - ErrorResponse = AzureRangeErrorResponse + Http.NoContentResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("Get a schedule by id.") - get is Azure.Core.Foundations.ResourceOperation< + get is FoundryResourceOperation< Schedule, { ...SchedulesPreviewHeader; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("List all schedules.") @Rest.listsResource(Schedule) - list is Azure.Core.Foundations.ResourceList< + list is FoundryResourceList< Schedule, SchedulesFilterQueryParams & SchedulesPreviewHeader, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("Create or update operation template.") @Http.put - createOrUpdate is Azure.Core.Foundations.ResourceOperation< + createOrUpdate is FoundryResourceOperation< Schedule, SchedulesCreateOrUpdateParams, - Azure.Core.Foundations.ResourceCreatedOrOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" @@ -92,10 +88,9 @@ interface Schedules { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "We need explicit definition for header support" @doc("List all schedule runs.") @Rest.listsResource(ScheduleRun) - listRuns is Azure.Core.Foundations.ResourceList< + listRuns is FoundryResourceList< ScheduleRun, SchedulesFilterQueryParams & SchedulesPreviewHeader, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; } diff --git a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp index 9db281058253..6a51beebf448 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/servicepatterns.tsp @@ -52,6 +52,44 @@ alias FoundryStandardResourceOperations = Azure.Core.ResourceOperations< AzureRangeErrorResponse >; +op FoundryOperation< + Params extends Reflection.Model, + Response, + Traits extends Reflection.Model = {} +> is Azure.Core.Foundations.Operation< + Params, + Response, + Traits, + AzureRangeErrorResponse +>; + +#suppress "@azure-tools/typespec-azure-core/no-response-body" "" +op FoundryResourceOperation< + Resource extends Reflection.Model, + Params extends Reflection.Model, + Response, + Traits extends Reflection.Model = {} +> is Azure.Core.Foundations.ResourceOperation< + Resource, + Params, + Response, + Traits, + AzureRangeErrorResponse +>; + +op FoundryResourceList< + Resource extends Reflection.Model, + Params extends Reflection.Model, + Response extends Reflection.Model, + Traits extends Reflection.Model = {} +> is Azure.Core.Foundations.ResourceList< + Resource, + Params, + Response, + Traits, + AzureRangeErrorResponse +>; + #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "" #suppress "@azure-tools/typespec-azure-core/no-response-body" "" op FoundryDataPlaneOperation< @@ -257,11 +295,10 @@ interface VersionedOperations< #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @doc("List the latest version of each {name}", TEntityType) @Rest.listsResource(TEntityType) - listLatest is Azure.Core.Foundations.ResourceList< + listLatest is FoundryResourceList< TEntityType, TListLatestParameters, - Azure.Core.Page, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Page >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -269,7 +306,7 @@ interface VersionedOperations< "Get the specific version of the {name}. The service returns 404 Not Found error if the {name} does not exist.", TEntityType ) - getVersion is Azure.Core.Foundations.ResourceOperation< + getVersion is FoundryResourceOperation< TEntityType, { @doc("The specific version id of the {name} to retrieve.", TEntityType) @@ -277,8 +314,7 @@ interface VersionedOperations< @path version: string; }, - Azure.Core.Foundations.ResourceOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceOkResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -287,7 +323,7 @@ interface VersionedOperations< TEntityType ) @delete - deleteVersion is Azure.Core.Foundations.ResourceOperation< + deleteVersion is FoundryResourceOperation< TEntityType, { @doc("The version of the {name} to delete.", TEntityType) @@ -295,8 +331,7 @@ interface VersionedOperations< @path version: string; }, - NoContentResponse, - ErrorResponse = AzureRangeErrorResponse + NoContentResponse >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Suppress `Operation should be defined using a signature from the Azure.Core namespace.`" @@ -305,11 +340,10 @@ interface VersionedOperations< TEntityType ) @patch - createOrUpdateVersion is Azure.Core.Foundations.ResourceOperation< + createOrUpdateVersion is FoundryResourceOperation< TEntityType, TInputParameters, - Azure.Core.Foundations.ResourceCreatedOrOkResponse, - ErrorResponse = AzureRangeErrorResponse + Azure.Core.Foundations.ResourceCreatedOrOkResponse >; } From af01ad86d74a3ca7cd77ebf6c60e87b0d038ce90 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:59:05 -0400 Subject: [PATCH 12/13] fix(ai-foundry): use range errors for OpenAI operations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../ai-foundry/data-plane/Foundry/src/common/models.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp index 17dfca844a58..1b34d953e101 100644 --- a/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp +++ b/specification/ai-foundry/data-plane/Foundry/src/common/models.tsp @@ -44,7 +44,7 @@ op OpenAIOperation< Params extends Reflection.Model, Response, ErrorResponse = ApiErrorResponse ->(...Params): Response | ErrorResponse; +>(...Params): Response | AzureRangeErrorResponse; #suppress "@azure-tools/typespec-azure-core/operation-missing-api-version" "OpenAI-based operations are not conventionally versioned" #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "OpenAI-based operations are definitionally non-standard" @@ -55,7 +55,7 @@ op OpenAIOperationWithPreview< ErrorResponse = ApiErrorResponse >(...WithConditionalFoundryPreviewHeader, ...Params): | Response - | ErrorResponse; + | AzureRangeErrorResponse; alias AssetBase = { @doc("Asset ID, a unique identifier for the asset") From c33aaba08e44be6d56002a8d3b0be841b4751a3a Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 25 May 2026 11:59:05 -0400 Subject: [PATCH 13/13] chore(ai-foundry): refresh OpenAI operation descriptions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../v1/microsoft-foundry-openapi3.json | 392 +++++++++++++++--- .../v1/microsoft-foundry-openapi3.yaml | 280 ++++++++++--- .../microsoft-foundry-openapi3.json | 392 +++++++++++++++--- .../microsoft-foundry-openapi3.yaml | 280 ++++++++++--- 4 files changed, 1120 insertions(+), 224 deletions(-) diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json index 07b41f37831f..5d3ec4a8d179 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.json @@ -10562,8 +10562,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10700,8 +10710,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10751,8 +10771,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10810,8 +10840,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10859,8 +10899,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -10923,8 +10973,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11073,8 +11133,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11133,8 +11203,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11191,8 +11271,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11305,8 +11395,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11336,8 +11436,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11389,8 +11499,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11430,8 +11550,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11471,8 +11601,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11607,8 +11747,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11647,8 +11797,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11709,8 +11869,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11759,8 +11929,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11809,8 +11989,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -11939,8 +12129,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12000,8 +12200,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -12608,8 +12818,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13157,8 +13377,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13189,8 +13419,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13306,8 +13546,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13364,8 +13614,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13424,8 +13684,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13551,8 +13821,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml index e85238e8d9d3..e81c595ed4d0 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/v1/microsoft-foundry-openapi3.yaml @@ -6921,8 +6921,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7025,8 +7031,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7057,8 +7069,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7094,8 +7112,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7125,8 +7149,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.DeletedConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7168,8 +7198,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationItemList' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7280,8 +7316,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7318,8 +7360,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.OutputItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7355,8 +7403,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7434,8 +7488,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7457,8 +7517,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7490,8 +7556,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteEvalResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7516,8 +7588,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7542,8 +7620,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7634,8 +7718,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7659,8 +7749,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7698,8 +7794,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteEvalRunResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7730,8 +7832,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7762,8 +7870,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7851,8 +7965,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -7890,8 +8010,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRunOutputItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8286,8 +8412,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/OpenAI.CreateResponseStreamingResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8661,8 +8793,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8681,8 +8819,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.CompactResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8756,8 +8900,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/OpenAI.CreateResponseStreamingResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8793,8 +8943,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteResponseResult' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8831,8 +8987,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.Response' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8927,8 +9089,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json index fdd8b367846f..489cc7bab51f 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.json @@ -13534,8 +13534,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13672,8 +13682,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13723,8 +13743,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13782,8 +13812,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13831,8 +13871,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -13895,8 +13945,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14045,8 +14105,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14105,8 +14175,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14163,8 +14243,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14277,8 +14367,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14308,8 +14408,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14361,8 +14471,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14402,8 +14522,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14443,8 +14573,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14579,8 +14719,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14619,8 +14769,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14681,8 +14841,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14731,8 +14901,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14781,8 +14961,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14911,8 +15101,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -14972,8 +15172,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -15580,8 +15790,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16153,8 +16373,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16185,8 +16415,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16302,8 +16542,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16360,8 +16610,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16420,8 +16680,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { @@ -16547,8 +16817,18 @@ } } }, - "default": { - "description": "An unexpected error response.", + "4XX": { + "description": "Client error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApiErrorResponse" + } + } + } + }, + "5XX": { + "description": "Server error", "content": { "application/json": { "schema": { diff --git a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml index 5e55e50554b8..515dd4314091 100644 --- a/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml +++ b/specification/ai-foundry/data-plane/Foundry/openapi3/virtual-public-preview/microsoft-foundry-openapi3.yaml @@ -8889,8 +8889,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -8993,8 +8999,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9025,8 +9037,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9062,8 +9080,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9093,8 +9117,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.DeletedConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9136,8 +9166,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationItemList' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9248,8 +9284,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9286,8 +9328,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.OutputItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9323,8 +9371,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.ConversationResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9402,8 +9456,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9425,8 +9485,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9458,8 +9524,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteEvalResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9484,8 +9556,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9510,8 +9588,14 @@ paths: application/json: schema: $ref: '#/components/schemas/Eval' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9602,8 +9686,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9627,8 +9717,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9666,8 +9762,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteEvalRunResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9698,8 +9800,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9730,8 +9838,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRun' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9819,8 +9933,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -9858,8 +9978,14 @@ paths: application/json: schema: $ref: '#/components/schemas/EvalRunOutputItem' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10254,8 +10380,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/OpenAI.CreateResponseStreamingResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10653,8 +10785,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10673,8 +10811,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.CompactResource' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10748,8 +10892,14 @@ paths: text/event-stream: schema: $ref: '#/components/schemas/OpenAI.CreateResponseStreamingResponse' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10785,8 +10935,14 @@ paths: application/json: schema: $ref: '#/components/schemas/DeleteResponseResult' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10823,8 +10979,14 @@ paths: application/json: schema: $ref: '#/components/schemas/OpenAI.Response' - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: @@ -10919,8 +11081,14 @@ paths: type: boolean description: A value indicating whether there are additional values available not captured in this list. description: The response data for a requested list of items. - default: - description: An unexpected error response. + 4XX: + description: Client error + content: + application/json: + schema: + $ref: '#/components/schemas/ApiErrorResponse' + 5XX: + description: Server error content: application/json: schema: