mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2024-12-28 00:19:55 +00:00
0fd4f3a506
The purpose of struct.proto is to be an exact mapping of JSON in protobufs. Since JSON doesn't support NaN and Inf, we should reject serialization of such values. Prior to this CL, they would be serialzed as a JSON string, which would change the interpretation of the value when round-tripped. Fixes golang/protobuf#1182 Change-Id: I6dba9973b1c24d99e5688b509611c0a952c00022 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/247737 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Herbie Ong <herbie@google.com> |
||
---|---|---|
.. | ||
protojson | ||
prototext | ||
protowire | ||
bench_test.go |