Skip to content

Enum Strings are no longer supported #575

Closed
@robin-anil

Description

@robin-anil

In V5 the ctor would either support string value or int value of an enum. in 6.2.1 string value is not supported when parsing from JSON. Would love to get that functionality back

message MyMessage {
 enum Type {
   CAT = 0;
   DOG = 1;
 }
 optional Type type = 1;
}
MyMessage.create({ type: 'DOG' });

does not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions