protobuf-go/internal/conformance
cybrcodr beaa55256c encoding/protojson: add better validation to FieldMask serialization
For marshaling, apart from already existing check that each item in
paths field is reversible, also make sure that string is a valid
protobuf name.

For unmarshaling, make sure that each resulting item in paths field is
a valid protobuf name and input path item does not contain _. The latter
check satisfies the conformance test
Recommended.Proto3.JsonInput.FieldMaskInvalidCharacter.

Fixes golang/protobuf#1141.

Change-Id: Iffc278089b20e496b7216d5b8c966b21b70e782d
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/236998
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2020-06-12 06:33:55 +00:00
..
conformance_test.go
failing_tests_text_format.txt encoding/prototext: rewrite of internal/encoding/text 2020-02-05 02:11:08 +00:00
failing_tests.txt encoding/protojson: add better validation to FieldMask serialization 2020-06-12 06:33:55 +00:00