Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

If swagger.host / basePath is not specified, it should use the right default #24

Closed
testn opened this issue Oct 21, 2015 · 0 comments
Closed
Labels

Comments

@testn
Copy link

testn commented Oct 21, 2015

the proper default is use the relative location from the swagger url.

i.e. if you run swagger-ui on http://swagger-ui:8000/ and your swagger url is http://swagger-definition:10000/myapp/swagger.json, it should resolve to

swagger.host = swagger-definition:10000
swagger.basePath = /myapp

currently it resolves to

swagger.host = swagger-ui
swagger.basePath =

which is not inline with swagger-ui code.

For the second case, if you run swagger-ui on http://swagger-ui:8000/ and your swagger url is /myapp/swagger.json, it should resolve to

swagger.host = swagger-ui:8000
swagger.basePath = /myapp

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

No branches or pull requests

2 participants