Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to support OpenAPI spec 3.0? #56

Closed
xcv58 opened this issue Jul 6, 2020 · 3 comments
Closed

Any plan to support OpenAPI spec 3.0? #56

xcv58 opened this issue Jul 6, 2020 · 3 comments

Comments

@xcv58
Copy link

xcv58 commented Jul 6, 2020

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.

https://swagger.io/docs/specification/2-0/api-host-and-base-path/

The known blockers:

@mgd43b
Copy link

mgd43b commented Jul 31, 2020

Hate to be the +1 but... 👍

maybe it's possible to make use of https://github.com/swagger-akka-http/swagger-scala-module instead?

@jakehschwartz
Copy link
Owner

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 :)

@jakehschwartz
Copy link
Owner

@xcv58 @mgd43b Gave it a shot but having issues #70

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants