Replies: 1 comment
-
We should add a compile time option to write out unlabeled enums as "unknown". I'll make an issue for this and try to add support soon. Thanks for the feedback! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lets say i have the following
By default serialization falls back to int for enums, this can cause a lot of issues with parsers expecing strings.
My question is how can i serialize unknown enum values as for example
"unknown"
?Similarly what happens if there is such an inconsistency in a json object, is there a way to skip that value?
Beta Was this translation helpful? Give feedback.
All reactions