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

calling Enum by string name in requests using gogo/protobuf results in error. #372

Closed
foolusion opened this issue Apr 24, 2017 · 4 comments

Comments

@foolusion
Copy link

With the standard protoc_gen_go I can reference Enum's by their string name when using grpc-gateway. This is not the case when I use gogo binaries.

The related issue gogo/protobuf#286

@johanbrandhorst
Copy link
Collaborator

This is because the grpc-gateway uses the golang/protobuf registered enum map for lookups. Like suggested in the link you provided you should use the goproto_registration extension to enable dual registration for your proto files.

@johanbrandhorst
Copy link
Collaborator

@tmc
Copy link
Collaborator

tmc commented Apr 25, 2017

I'd love to get this into wiki/docs.

@foolusion
Copy link
Author

The goproto_registration extension solved my issue. Thanks!

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

3 participants