Parsing deserialize validation errors #478
Unanswered
niamhdougan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to give a better error message with code snippet for ValidationErrors.
Using the 'Class as union of subclasses' example:
In VSCode editor this gives a red squiggly line under the
0
in the assertionFoo(Foo(Foo(0)))
.The ValidationError in the terminal is:
Is there a way of extracting the culpable code snippet and validation error from this to give a clearer error message?
Beta Was this translation helpful? Give feedback.
All reactions