You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use jsonpb to marshal the protobuf object to json string. Use EnumsAsInts: false so that the enum field is written as a string in json.
But when I use jsonpb to unmarshall it back to protobuf i am getting the following error: Received unexpected error "unknown value \"ERROR\" for enum logging.LogLevel"
But when I set EnumsAsInts: true and the enum is written as a int, the unmarshal works.
The unmarshal should also be able to unmarshal enum from string, right?