Continue parsing on illegal value if default is present? #209
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Is there any way to continue parsing the rest of the file if one of the values is of wrong type but the class contains default value for it?
For example when some enum is misspelled
code example:
TOML:
Expected result of parsing would be
Foo(a = 8, b = EnumTest.A, c = "world")
Current behavior:
Value <D> is not a valid enum option. Permitted choices are: A, B, C
My current workaround is to catch the exception, remove the line with specified value and try to parse again. But even that fails if that wrong value is correctly used in another place in the file.
The text was updated successfully, but these errors were encountered: