protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Can JSON decoder be loose on constraints about float?

Open junaid1460 opened this issue 7 months ago • 3 comments

Most JSON encoders just wrap 1.0 to 1, while protobuf gives good enough code generation, can we cast 1 -> 1.0 for floats and doubles?

The alternate solution is to use FloatValue and DoubleValue, that feels like just more work for no reason

junaid1460 avatar Nov 30 '23 05:11 junaid1460