Skip to content

Enum values should default to their first value listed in the proto file #24

@modersohn

Description

@modersohn

https://developers.google.com/protocol-buffers/docs/proto#optional states:

"For enums, the default value is the first value listed in the enum's type definition"

Right now they are initialized to 0 (which might be invalid!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggeneratorissues applying to the code generator

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions