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
In case of single enum field, unknown value is ignored but for repeated enums it tried to add null.
If we can avoid adding null here it will support backward compatability for repeated enums too. Happy to send a patch if this approach works.
The text was updated successfully, but these errors were encountered:
Good catch. I think your fix should work, convertProto3JsonValue returns null only on unknown enum values, so just skipping those when adding to the list should work.
osa1
added a commit
to osa1/protobuf.dart
that referenced
this issue
Jun 22, 2023
Consider following snippet of code:
Output
Full Code Snippet: https://github.com/Anushi1998/DartProtobufBug/
In case of single enum field, unknown value is ignored but for repeated enums it tried to add null.
If we can avoid adding null here it will support backward compatability for repeated enums too. Happy to send a patch if this approach works.
The text was updated successfully, but these errors were encountered: