docfx
docfx copied to clipboard
Swagger - support overwrite properties for referencedObject
Exceptions occurred when merging “description” from ErrorMessage object to BatchError, which is duplicated. Should fixed it by overwrite instead of throwing error, following swagger behavior.
"BatchError": {
"properties": {
"message": {
"$ref": "#/definitions/ErrorMessage",
"description": "A message describing the error, intended to be suitable for display in a user interface."
},
},
"description": "An error response received from the Azure Batch service."
},
"ErrorMessage": {
"properties": {
"lang": {
"type": "string",
"description": "The language code of the error message"
},
"value": {
"type": "string",
"description": "The text of the message."
}
},
"description": "An error message received in an Azure Batch error response."
}
Fixed it by #318