Human Readable Error Messages #1207
stuft2
started this conversation in
Show and tell
Replies: 0 comments
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.
-
I've struggled to find a great way to print human readable error messages given a set of TypeBox ValueErrors. This was my best attempt without diving too far into specific types and rewording error messages (e.g. not replacing
Expected required property
withMissing property
).It outputs messages like the following:
I'm not sure how to improve the messages around union values. I'd love to hear others' thoughts or see other solutions!
Beta Was this translation helpful? Give feedback.
All reactions