Skip to content

Support proto3 default value for enums #30

@geekingfrog

Description

@geekingfrog

Thanks for the project, really useful and overall nice to work with.
I have noticed a bug regarding default values. For an enum, if it's set to a default value, then it will not show up in the clojure structure, and when deserializing it, the resulting object will not have any value for the enum.

I have created a simple test case exhibiting the problem at https://github.com/geekingfrog/clojure-protobuf-bug-default-enum
There is a java reference which shows the correct behavior, and a simple clojure file to compare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions