-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
protoc-gen-swagger: patch method request attributes do not map to query parameter #1015
Comments
I would have expected |
currrently, I am working on designing the APIs, I will verify the gateway after I working on the server. |
Hello! Any update on this one? |
Sorry, I do not have time working on my side project recently. |
I have confirmed query parameter is set correctly. So it seems only the swagger output is not working as expected. |
Hi @winglq, thanks for doing that investigation. What can I do to help you get a fix for this merged? |
Hi @johanbrandhorst sorry for the late response. I think fix the protoc-gen-swagger bug would be helpful as it will give us a correct swagger api defination. But it's ok to low it's priority because I'm using it in a side project. |
for my this is major bug, as i'm generate typescript stuff from swagger definition. |
We'd love to have a fix for this, could you help out Vasiliy? |
i think about it, so for put/patch we need to pass all that not in body via url variables |
It's just a matter of fixing the swagger generator behaviour to match the behaviour of the gateway; yes, for these requests we're missing some fields. |
I have a similar problem, if i defined the path |
I think this has the same root cause as issue #1670 that I just fixed. With 2.8.0 I get the following in
I suggest closing this as fixed. |
With version 2.7.2 or newer, you should get |
@johanbrandhorst I should have tagged you above - this seems to be fixed. Note - I might have taken undue credit - I didn't fix the query parameters, only the body parameter. |
Great, very happy to close this! |
This is a follow up issue to #1012.
The following is the parameter section of swagger output.
The text was updated successfully, but these errors were encountered: