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

protoc-swagger-generator messes up the comments if there is rpc method that does not have rest #263

Closed
ggeorgiev opened this issue Nov 17, 2016 · 1 comment

Comments

@ggeorgiev
Copy link

In case there is rpc method that does not support rest api (or does not have option (google.api.http)) the json generation gets confused and misaligns the comment for the methods.

@tmc
Copy link
Collaborator

tmc commented Nov 20, 2016

this is because (*Registry).loadServices in github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descriptor/services.go skips over methods that don't define these mappings so the lookup by index gets off.

we should probably still create Methods with no Bindings for this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants