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

[server]: using multi securitySchemes on same path cause incorrect code #662

Closed
giautm opened this issue Nov 8, 2022 · 0 comments · Fixed by #663
Closed

[server]: using multi securitySchemes on same path cause incorrect code #662

giautm opened this issue Nov 8, 2022 · 0 comments · Fixed by #663
Labels
bug Something isn't working

Comments

@giautm
Copy link
Contributor

giautm commented Nov 8, 2022

What version of ogen are you using?

$ go list -m github.com/ogen-go/ogen

Output: github.com/ogen-go/ogen v0.54.1

Can this issue be reproduced with the latest version?

Yes

What did you do?

paths:
  /some-path:
    post:
      operationId: somePath
      security:
        - partnerID: []
          accessKey: []
components:
  securitySchemes:
    partnerID:
      type: apiKey
      name: X-Partner-ID
      in: header
    accessKey:
      type: apiKey
      name: X-Access-Key
      in: header

What did you expect to see?

Code generate correctly

What did you see instead?

Screen Shot 2022-11-09 at 03 18 37

@giautm giautm added the bug Something isn't working label Nov 8, 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

Successfully merging a pull request may close this issue.

1 participant