Skip to content

Commit

Permalink
[Synapse] extract common definition for CloudError (Azure#18636)
Browse files Browse the repository at this point in the history
* configuration

* optimize common definition

* update

* fix

* Update readme.python.md
  • Loading branch information
msyyc authored and FredericHeem committed May 16, 2022
1 parent f2c9c34 commit 21ead6b
Show file tree
Hide file tree
Showing 17 changed files with 201 additions and 332 deletions.
45 changes: 45 additions & 0 deletions specification/synapse/common/v1/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,51 @@
},
"paths": {},
"definitions": {
"CloudError": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error response.",
"type": "object",
"properties": {
"error": {
"x-ms-client-flatten": true,
"description": "Error data",
"$ref": "#/definitions/CloudErrorBody"
}
},
"required": [
"error"
]
},
"CloudErrorBody": {
"x-ms-external": true,
"description": "The object that defines the structure of an Azure Synapse error.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message.",
"type": "string"
},
"target": {
"description": "Property name/path in request associated with error.",
"type": "string"
},
"details": {
"description": "Array with additional error details.",
"type": "array",
"items": {
"$ref": "#/definitions/CloudError"
}
}
},
"required": [
"code",
"message"
]
},
"ErrorContract": {
"title": "Error details.",
"description": "Contains details when the response code indicates an error.",
Expand Down
Loading

0 comments on commit 21ead6b

Please sign in to comment.