docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Swagger - support overwrite properties for referencedObject

Open hellosnow opened this issue 10 years ago • 1 comments

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."
    }

hellosnow avatar May 19 '16 08:05 hellosnow

Fixed it by #318

hellosnow avatar May 19 '16 08:05 hellosnow