docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Rest Swagger - support `parameters` applicable for all the operations under `path`

Open hellosnow opened this issue 10 years ago • 0 comments

Currently, docfx rest swagger support parameters directly under get, put operation etc. But according Swagger paths schema, paths should support parameters that are applicable for all the operations described under each path.

{
  "paths": {
    "/test": {
      "parameters": [{
        "$ref": "#/parameters/A"
      }],
      "get": {
        "operationId": "B",
        "parameters": [{
          "name": "kind",
          "in": "path",
          "required": true,
          "type": "string"
        }]
      }
    }
  }
}

hellosnow avatar Jun 06 '16 11:06 hellosnow