You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we can set the server variables for different environments like so:
servers:
- url: 'https://{environment}.example.com/v1'
variables:
environment:
default: api
enum:
- api
- sandbox.api
- development.api
- staging.api
Is it possible to also set variables for the authorization code urls? Normally you'd want to match these environments when authenticating. I'd imagine it would look something like this:
I think the only thing to figure out here is issue #31, which is about where to put the auth servers and how to reference them (if they are not exclusively inline). Once we have Server Objects for auth servers, variables come with it automatically.
Activity
hkosova commentedon Aug 21, 2020
Related (or duplicate): OAI/OpenAPI-Specification#551
MikeRalphson commentedon Aug 21, 2020
Thanks @hkosova , also OAI/Overlay-Specification#33
handrews commentedon May 13, 2026
I think the only thing to figure out here is issue #31, which is about where to put the auth servers and how to reference them (if they are not exclusively inline). Once we have Server Objects for auth servers, variables come with it automatically.