commit | 8f06b65f53b5cb13b2e6321883ccf1a95b15b25f | [log] [tgz] |
---|---|---|
author | Jakob Andersen <jakobr@google.com> | Thu Apr 20 16:21:48 2017 +0200 |
committer | GitHub <noreply@github.com> | Thu Apr 20 16:21:48 2017 +0200 |
tree | 96dcd523b93f23a2e958038ad269d43853579884 | |
parent | 8836e560e0504ce047f6e79ad935a498bdd2ec98 [diff] |
Merge changes from internal repo. (#68) Parsing protobuf from JSON now ignores unknown enum values instead of throwing an exception. The behavior is still different from parsing a message from a serialized byte string, because we do not store the (tag, unknown enum value) pair in the UnknownFieldSet. JSON parsing currently discards unknown field tags, so it makes sense to also discard the unknown enum values.