Skip to content

Commit

Permalink
Fix common type issue (#11399)
Browse files Browse the repository at this point in the history
* fix v2/types.json

* update

* add required

* remove required
  • Loading branch information
jianyexi authored Oct 29, 2020
1 parent 9abfdcf commit 9d3adc7
Showing 1 changed file with 40 additions and 36 deletions.
76 changes: 40 additions & 36 deletions specification/common-types/resource-management/v2/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,47 +270,51 @@
"product"
]
},
"ErrorDetail": {
"description": "The error detail.",
"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/ErrorDetail"
},
"description": "The error details."
},
"additionalInfo": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/ErrorAdditionalInfo"
},
"description": "The error additional info."
}
}
},
"ErrorResponse": {
"title": "Error response",
"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": {
"type": "object",
"description": "The error 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/ErrorResponse"
},
"description": "The error details."
},
"additionalInfo": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/ErrorAdditionalInfo"
},
"description": "The error additional info."
}
}
"$ref": "#/definitions/ErrorDetail"
}
},
"description": "The resource management error response."
}
},
"ErrorAdditionalInfo": {
"properties": {
Expand Down

0 comments on commit 9d3adc7

Please sign in to comment.