Support google.type.Decimal
in gRPC JSON transcoding
#51520
Labels
area-grpc
Includes: GRPC wire-up, templates
google.type.Decimal
in gRPC JSON transcoding
#51520
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Technically this type is not a wrapper type and it's not implemented as a well-known type either yet, but I believe it's perfectly fine to cover it in the deserializer for the time being and accept
"123"
,123
in addition to the existing{ "value", "123" }
schema.Describe the solution you'd like
Accept
"123"
,123
in addition to the existing{ "value", "123" }
schema. This may need some options to prevent change in behavior esp. when serializing.Alternatives
Another way to do this is to let users write their own json converters, but this API is not public right now. (#46712)
The text was updated successfully, but these errors were encountered: