Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hellosnow opened this issue Jun 6, 2016 · 0 comments
Assignees
Milestone

Comments

@hellosnow
Copy link
Contributor

hellosnow commented Jun 6, 2016

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"
        }]
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants