You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The encoding and decoding for protobuf field masks via gRPCurl is incorrect.
The protobuf reference defines a comma separate list of strings for field masks, whereas gRPCurl just maps between the JSON and protobuf as if it were any other proto and expects an array of strings under a paths field in an object (i.e. repeated string paths).
This cause problems when piping JSON decoded protos into gRPCurl.
It looks like the reason for this is that gRPCurl uses jsonpb, a deprecated library that doesn't feature FieldMask in its switch for well known types when decoding. Whereas the more modern protobuf-go library does.
Would you be open to updating the encoding to protobuf-go given this would be a relatively notable breaking change?
The text was updated successfully, but these errors were encountered:
The encoding and decoding for protobuf field masks via gRPCurl is incorrect.
The protobuf reference defines a comma separate list of strings for field masks, whereas gRPCurl just maps between the JSON and protobuf as if it were any other proto and expects an array of strings under a
paths
field in an object (i.e.repeated string paths
).This cause problems when piping JSON decoded protos into gRPCurl.
It looks like the reason for this is that gRPCurl uses
jsonpb
, a deprecated library that doesn't featureFieldMask
in itsswitch
for well known types when decoding. Whereas the more modernprotobuf-go
library does.Would you be open to updating the encoding to
protobuf-go
given this would be a relatively notable breaking change?The text was updated successfully, but these errors were encountered: