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

Missing header generation with compound security header. #104

Open
wRLSS opened this issue Jul 4, 2024 · 0 comments
Open

Missing header generation with compound security header. #104

wRLSS opened this issue Jul 4, 2024 · 0 comments

Comments

@wRLSS
Copy link

wRLSS commented Jul 4, 2024

OpenAPI 3.0 supports usage of multiple API Keys.

components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
    appId:
      type: apiKey
      in: header
      name: X-APP-ID
security:
  - apiKey: []
    appId:  []

However, X-APP-ID header is not properly appended to codesnippet during generation producing

curl --request POST \
  --url https://petstore.com/api/v1/pet/ \
  --header 'X-API-Key: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{}'
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