pfelsted
5 years agoNew Contributor
Reference to a SecurityScheme
Is there a way to reference the component securityScheme from a common swagger definitions so I do not need to duplicate it in each of my swagger definitions? Like $ref http://somurl.com/component/securityScheme/oauthSample. If so what is the syntax to add this globally and per path?
security:
- oauthSample:
- read
- write
security:
- oAuthSample: [write]