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
We are using swagger-core 1.x (support only OpenAP spec 2.0) now and there are a bunch of useful features. For example, multiple hosts support:
Can I specify multiple hosts, e.g. development, test and production?
Multiple hosts are supported in OpenAPI 3.0. 2.0 supports only one host per API specification (or two if you count HTTP and HTTPS as different hosts). A possible way to target multiple hosts is to omit the host and schema from your specification and serve it from each host. In this case, each copy of the specification will target the corresponding host.
Yeah good thinking. I gave it a try tonight but get the swagger-core library upgraded. Will give it another try during the weekend if I get a chance. Or will accept PRs :)
We are using swagger-core 1.x (support only OpenAP spec 2.0) now and there are a bunch of useful features. For example, multiple hosts support:
https://swagger.io/docs/specification/2-0/api-host-and-base-path/
The known blockers:
swagger-scala-module
doesn't supportswagger-core
2.x: support swagger-core 2.0.0 swagger-api/swagger-scala-module#49 (comment)The text was updated successfully, but these errors were encountered: