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

Header parameters are not generated according to openapi spec #64

Open
prasannakumar1989 opened this issue Dec 6, 2022 · 0 comments
Open

Comments

@prasannakumar1989
Copy link

prasannakumar1989 commented Dec 6, 2022

Thank you for this amazing gem!

The schema option need to be added for header parameters. According to open api 3.0.0, parameters should have a schema property.

...
paths:
  /post:
    post:
      parameters:
        - in: header
          name: X-username
          schema:
            type: string
            example: user12345

Currently headers don't have schema property.

paths:
  /post:
    post:
      parameters:
        - in: header
          name: X-username
          example: user12345

Can you please address this issue ?

@prasannakumar1989 prasannakumar1989 changed the title Header parameters are not generated according to swagger spec Header parameters are not generated according to openapi spec Dec 7, 2022
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

1 participant