Skip to content

Commit 21ead6b

Browse files
msyycFredericHeem
authored andcommitted
[Synapse] extract common definition for CloudError (Azure#18636)
* configuration * optimize common definition * update * fix * Update readme.python.md
1 parent f2c9c34 commit 21ead6b

File tree

17 files changed

+201
-332
lines changed

17 files changed

+201
-332
lines changed

specification/synapse/common/v1/types.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,51 @@
66
},
77
"paths": {},
88
"definitions": {
9+
"CloudError": {
10+
"x-ms-external": true,
11+
"description": "The object that defines the structure of an Azure Synapse error response.",
12+
"type": "object",
13+
"properties": {
14+
"error": {
15+
"x-ms-client-flatten": true,
16+
"description": "Error data",
17+
"$ref": "#/definitions/CloudErrorBody"
18+
}
19+
},
20+
"required": [
21+
"error"
22+
]
23+
},
24+
"CloudErrorBody": {
25+
"x-ms-external": true,
26+
"description": "The object that defines the structure of an Azure Synapse error.",
27+
"type": "object",
28+
"properties": {
29+
"code": {
30+
"description": "Error code.",
31+
"type": "string"
32+
},
33+
"message": {
34+
"description": "Error message.",
35+
"type": "string"
36+
},
37+
"target": {
38+
"description": "Property name/path in request associated with error.",
39+
"type": "string"
40+
},
41+
"details": {
42+
"description": "Array with additional error details.",
43+
"type": "array",
44+
"items": {
45+
"$ref": "#/definitions/CloudError"
46+
}
47+
}
48+
},
49+
"required": [
50+
"code",
51+
"message"
52+
]
53+
},
954
"ErrorContract": {
1055
"title": "Error details.",
1156
"description": "Contains details when the response code indicates an error.",

0 commit comments

Comments
 (0)