-
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
Header is not displaying in Swagger UI #391
Comments
would be cool to write a spec (similar to this one: api_swagger_v2_headers_spec.rb so it could be reproduced and which version did you using? |
I am using version 0.20.1. Also My swagger doc looks like this
But this is not creating header field. |
ok, I see … |
It would be better if you could provide an alternative solution in form of some patch. Sorry but I think modifying 100s of apis to add just one extra parameter does not look a good approach. Can I accept some sort of patch in near future from you |
@brahamshakti What exactly are you proposing? What would you like to write in your API? We'll accept patches from you, thanks. I think you want to reuse parameters as described in https://github.com/ruby-grape/grape#helpers. |
doing from the referenced test case
does not really work. It will make valid swagger spec, but the grape code is looking for the |
should be solved with @wleeper PR but the question is always, how to differ between stuff for request and stuff for response for documentation … what are your thoughts? |
@brahamshakti give it a try, and close the issue |
Thanks to @wleeper, my issue is resolved with this pull request. I am closing this issue for now. Thanks to all. |
This Code is not displaying header field in swagger UI
Earlier It used to be like
But now it is showing no header field with above Code
How do I fix this issue.
The text was updated successfully, but these errors were encountered: