protobuf-go/encoding
Joe Tsai 8689fa59f4 encoding/prototext: add UnmarshalOptions.DiscardUnknown
This CL adds support for discarding unknown fields from the input.
We add support for parsing and resolving field numbers, so that
the DiscardUnknown option can ignore all unresolvable fields.
We continue to reject known fields identified by field number
since there are a number of edge cases that a difficult to resolve.

Change-Id: I5c88b7bae8656ce20e85e4b5c92d8564a5ff8bb6
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/195779
Reviewed-by: Herbie Ong <herbie@google.com>
2019-09-17 03:07:37 +00:00
..
protojson encoding/prototext: document unstable marshal output 2019-09-07 00:56:21 +00:00
prototext encoding/prototext: add UnmarshalOptions.DiscardUnknown 2019-09-17 03:07:37 +00:00
testprotos all: rely on message_set_extension name mangling in ExtensionDescV1 2019-08-21 02:47:33 +00:00
bench_test.go all: remove use of deprecated NewMessage 2019-09-04 17:55:31 +00:00