Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enums should have UNKNOWN field #43

Open
machinekoder opened this issue Dec 12, 2015 · 1 comment
Open

Enums should have UNKNOWN field #43

machinekoder opened this issue Dec 12, 2015 · 1 comment

Comments

@machinekoder
Copy link
Member

For backwards compatibility between different version of the protobuf messages Enums should have an UNKNOWN field with value 0. See http://stackoverflow.com/questions/10392952/how-to-design-for-a-future-additional-enum-value-in-protocol-buffers
Most importantly the id 0 should not be used by anything else except the UNKNOWN value.

@machinekoder machinekoder mentioned this issue Jan 14, 2016
@mhaberler
Copy link
Contributor

yeah good point wrt proto3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants