machinekit / machinetalk-protobuf

Protobuf declarations for machinekit messages
MIT License
10 stars 11 forks source link

Enums should have UNKNOWN field #43

Open machinekoder opened 8 years ago

machinekoder commented 8 years ago

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.

mhaberler commented 8 years ago

yeah good point wrt proto3