ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

Need encoding support for required fields #68

Closed jhugard closed 7 years ago

jhugard commented 7 years ago

Functions in the Encode module assume that "0" or "default" values should be elided (not serialized). However, in proto2, required fields must appear in the serialization stream, even if they have the default value.

Please add Encode module functions to support required fields. Encode.fromNondefaultedVarint exists, but none of the other data types are supported.