mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-09 03:39:24 +00:00
beaa55256c
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>
0 lines
Plaintext
0 lines
Plaintext