Skip to content

encode_data should skip serializing when default value is present #15

@Downchuck

Description

@Downchuck

encode_data should check if a field is optional, and if it is, if the value is set to the default as described by the schema. If these conditions hold, the field does not need to be serialized, as the schema already defines its value on decoding.

https://developers.google.com/protocol-buffers/docs/proto?hl=en#optional

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions