forked from appnexus/pyrobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not reject enum values that are not listed in the proto file
According to the language guide [1]: During deserialization, unrecognized enum values will be preserved in the message, though how this is represented when the message is deserialized is language-dependent. We can store any integer in the underlying field, because in Cython, enum and int are the same. Fixes appnexus#149.
- Loading branch information
1 parent
154ccd4
commit 1304330
Showing
3 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters