PROBLEM STATEMENT:
For a \"strange\" reason, all our operations of an API have different \"host\". We have API like this:
This is not supported in swagger 2.0 specification. It will be added in the next version though, so no need to add the proposal! See here:
https://github.com/OAI/OpenAPI-Specification/issues/562
Overriding the target server at the path or operation level is now supported in OpenAPI 3.0:
openapi: 3.0.0
servers:
- url: https://my.api.com/v1
paths:
/foo:
# Override the server at path level
servers:
- url: https://another.server:8443/basePath
get: ...
post: ...
/bar:
get:
# Override the server at operation level
servers:
- url: https://some.other.server/v2
post: ...