-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cannot set consumes
definition per operation
#726
Comments
Indeed, it seems |
I can give a try, should we keep this open as a tracking issue? |
Yes :) |
I am a bit unsure how to write the test I cannot seem to find any examples how to actually pass in options with |
If you put up a PR we can review it and help you create some tests for it! |
Hello @johanbrandhorst, |
Please follow the general troubleshooting steps first:
grpc-gateway
to the latest version from github. withgit fetch https://github.com/grpc-ecosystem/grpc-gateway master && git reset --hard FETCH_HEAD
protoc-gen-grpc-gateway
andprotoc-gen-swagger
binary from yourPATH
,and install locally built binaries.
Bug reports:
Cannot set
consumes
definition per operation, even though theconsumes
field is present in theopenapiv2_operation
message definition. This leads to problem with using the generated swagger spec to generate test server or client for non GRPC clients.Steps you follow to reproduce the error:
consumes
viaopenapiv2_swagger
consumes
viaopenapiv2_operation
for a seperate rpc methodWhat did you expect to happen instead:
What's your theory on why it isn't working:
Looking at this it seems the per operation
consumes
is not being consideredThe text was updated successfully, but these errors were encountered: