More specific error message for validating intersection? #961
Unanswered
dielsalder
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
-
If I validate some data using a
Type.Object
then in the case of an error,Value.Errors
gives a useful message with the path to the specific property that didn't match. But if the schema is an Intersection, then the error looks like this:In a large intersection schema with lots of properties and nested objects, it is impossible to see which specific property caused the error. Most of the schemas in my project are big so this is makes it very hard to debug. Current workaround has been to go in and validate using each of the object schemas that make up the intersection. Is there any way to narrow down the error here and get a more useful message?
Beta Was this translation helpful? Give feedback.
All reactions