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

Feature: Support parameters are described in path section of an OpenApi v3 specification #37

Closed
mbraint opened this issue Jan 12, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mbraint
Copy link

mbraint commented Jan 12, 2022

Is your feature request related to a problem? Please describe.
First of all it relates to the OpenApiSpecification v3.
describing parameters
Currently middleware works with parameters are described only in the operation sections
When parameters are described in operation section it works properly:

...
paths:
  /pets/{id}:
    get:
      summary: Get All Pets
      tags:
        - pets
      operationId: getAllPets
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
...

When parameters are described in path section it doesn't work

...
paths:
  /pets/{id}:
    parameters:
      - in: path
        name: id
        required: true
        schema
            type: string
    get:
      summary: Get All Pets
      tags:
        - pets
      operationId: getAllPets
      responses:
...

Describe the solution you'd like
Just support working with valid OpenApi v3 according specification

@aleksandryackovlev aleksandryackovlev self-assigned this Jan 28, 2022
@aleksandryackovlev aleksandryackovlev added the bug Something isn't working label Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants