autorest icon indicating copy to clipboard operation
autorest copied to clipboard

Could “x-ms-examples" support description inside?

Open hellosnow opened this issue 8 years ago • 0 comments

May I ask whether we could have description inside "x-ms-example" as following? Refer to x-ms-examples. Thanks!

"x-ms-examples": {
  "example-name": { //Name of the example/scenario.
    "description": "test",
    "parameters": { //Provide examples for all the path, query, header, body, formData parameters as applicable.
       ...
    },
    "responses": { //Provide examples of the response headers and body per status code (as per the operation defined in the swagger spec) as applicable.
      "statusCode1": {
        "headers": { ... }, //Examples for location, azure-asyncoperation, retry-after response headers for long running (asynchronous) operations would be valueable
        "body": { ... }
      },
      "statuscode2": { ... }
    }
  }
}

hellosnow avatar Aug 02 '18 03:08 hellosnow