Grpc-gateway: calling Enum by string name in requests using gogo/protobuf results in error.

Created on 25 Apr 2017  路  4Comments  路  Source: grpc-ecosystem/grpc-gateway

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

Most helpful comment

The goproto_registration extension solved my issue. Thanks!

All 4 comments

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.

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

The goproto_registration extension solved my issue. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

strobil picture strobil  路  4Comments

dong77 picture dong77  路  4Comments

boosh picture boosh  路  5Comments

fifthaxe picture fifthaxe  路  5Comments

yearm picture yearm  路  3Comments