Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ closedlist
closedlists
Cloudamize
cloudapp
clouderror
cloudevents
cloudManifestFiles
cloudproperties
Expand Down
62 changes: 62 additions & 0 deletions specification/common-types/resource-management/v2/clouderror.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need this file added here? We already have ErrorResponse and ErrorDetails here which are exactly the same as the things in this file:

"swagger": "2.0",
"info": {
"version": "2.0",
"title": "Cloud error types"
},
"paths": {},
"definitions": {
"CloudErrorBody": {
"x-ms-external": true,
"description": "The error detail.",
"type": "object",
"properties": {
"code": {
"readOnly": true,
"type": "string",
"description": "The error code."
},
"message": {
"readOnly": true,
"type": "string",
"description": "The error message."
},
"target": {
"readOnly": true,
"type": "string",
"description": "The error target."
},
"details": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/CloudErrorBody"
},
"x-ms-identifiers": [],
"description": "The error details."
},
"additionalInfo": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "./types.json#/definitions/ErrorAdditionalInfo"
},
"x-ms-identifiers": [],
"description": "The error additional info."
}
}
},
"CloudError": {
"x-ms-external": true,
"title": "Error response",
"type": "object",
"description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).",
"properties": {
"error": {
"description": "The error object.",
"$ref": "#/definitions/CloudErrorBody"
}
}
}
}
}
Loading