One OpenAPI Spec, Three Environments: Using Server Variables to Switch Base URLs
Use OpenAPI 3.0 server variables to maintain a single spec for dev, staging, and production. Swagger UI and Redoc render a live selector; generated SDKs need regeneration to honor the switch. Includes a CI smoke test and linting guardrails.