Forum Discussion
frankkilcommins
9 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
- 10 months ago
- 9 months ago
- 3 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 19 days ago