Forum Discussion
frankkilcommins
7 months agoStaff
tanz No that's not supported by the OpenAPI Specification. You can always request changes at https://github.com/OAI/OpenAPI-Specification/issues
If you have a common pattern in your servers, then perhaps you can approach it slightly differently:
servers:
- url: 'https://{env}.domain.com/api/{version}'
variables:
env:
description: Environment - staging or production
default: staging
enum:
- staging
- production
version:
description: API version
default: v1
enum:
- v1
- v2
Related Content
- 7 months ago
- 8 months ago
- 3 years ago