-
Notifications
You must be signed in to change notification settings - Fork 472
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
swagger_doc.json returns wrong swagger doc urls #150
Comments
I think this was done on purpose because there's a separate |
I tried to set base_path without any effect... should I try basePath? According to the doc it is base_path |
The doc should be correct. It's possible that this is a bug of course, maybe you can try to build a simple repro case, I would start by looking at tests inside this gem, maybe add one. |
+1 for me: in my case ignoring the base_path means that my two swagger endpoints no longer work. |
Same here. I can't get grape-swagger to pay attention to any base_path values. |
I believe this may be fixed by https://github.com/tim-vandecasteele/grape-swagger/pull/167, can someone please do me a favor and verify it? |
@tommytcchan Help me reproduce this in a spec in this project? |
I'm using ReDoc to view Swagger output. It was continually showing my endpoints as:
The only way to fix this was to specifically define the base_path, even though I'm not adding it:
|
@boomshadow … which version of grape-swagger you are using? |
@LeFnord ah, I missed that this was for the older version. Yes, I'm using 0.23.0. I'll open a new issue. Thanks for that. |
See the description here:
http://stackoverflow.com/questions/25772229/swagger-doc-json-returns-wrong-swagger-doc-urls/25782328#25782328
It seems that since the version 0.7.2 the url_base get lost...
The text was updated successfully, but these errors were encountered: