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

host value is not automatically propagated if not specified in spec (relative path to spec case) #108

Closed
sinha-bharat opened this issue Sep 9, 2016 · 4 comments
Assignees

Comments

@sinha-bharat
Copy link

sinha-bharat commented Sep 9, 2016

The definition of my rest service path/to/my/service/url which works fine when I specify base path for swagger; But when I use ReDoc the rightmost panel shows the path as
POST http://null/path/to/my/service/url

the swagger.json representation has basePath specified, how can ReDoc read the element and fix the post URL.

I am using relative path for redoc spec-url.

@RomanHotsiy RomanHotsiy self-assigned this Sep 9, 2016
@RomanHotsiy
Copy link
Member

I have checked and confirm this is a bug. I will fix it for the next release.
Temporary as a workaround you can either specify full URL to your spec in ReDoc options or specify host in the swagger (see example in our demo spec)

@sinha-bharat
Copy link
Author

I wasn't sure that I had enough there for you to explain the problem but it seems that was okay.

Thank you for adding the label and fixing it in the next release.

@RomanHotsiy RomanHotsiy changed the title basePath is not read from swagger.json host value is not automatically propagated if not specified in spec (relative path to spec case) Sep 12, 2016
RomanHotsiy added a commit that referenced this issue Sep 12, 2016
@RomanHotsiy
Copy link
Member

fixed and released

@sinha-bharat
Copy link
Author

Thank you Roman; I verified and it works as intended. Thank you!

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

2 participants