I'm creating API documentation with OpenAPI 3.0.
I have security schemes defined like below.
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
BearerAuth:
type: http
scheme: bearer
And I have two server URLs defined.
servers:
- url: https://api.example.com
description: Production server (uses live data)
- url: https://sandbox-api.example.com
description: Sandbox server (uses test data)
I want to apply BasicAuth security for only Sandbox server and BearerAuth for only Production server. How can I do that?