Multiple security schemes not supported #1647
Labels
bug
Something isn't working
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
When defining multiple security schemes, the package fails to parse the spec, as it expects all security schemes to be defined in the security section.
According to the OpenAPI 3.0 spec, however, this is not required: https://swagger.io/docs/specification/authentication/ .
openapi-typescript
6.7.4
Reproduction
Define this
securitySchemes
components:And set:
The intended behavior is that clients can use either security scheme.
Expected result
For the spec to successfully be typed.
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: