Consider this snippet:
components:
securitySchemes:
jwt:
type: apiKey
in: cookie
name: JWT_TOKEN
apiToken:
type: http
scheme: bearer
httpBasic:
type: http
scheme: basic
If I want a set of requests to support each of these authentication methods in turn, I would have to add something like:
security:
- jwt: []
- apiToken: []
- httpBasic: []
...to each one. It would be far easier if the components object supported a security section, something like this:
components:
security:
myAuths:
- jwt: []
- apiToken: []
- httpBasic: []
...so that requests could just include:
security:
$ref: '#/components/security/myAuths'
Consider this snippet:
If I want a set of requests to support each of these authentication methods in turn, I would have to add something like:
...to each one. It would be far easier if the
componentsobject supported asecuritysection, something like this:...so that requests could just include: