This repository has been archived by the owner on May 12, 2018. It is now read-only.
Add sub schema failures to context for container constraints (oneOf, allOf) #82
Labels
Milestone
When a container constraint like oneOf fails, it just says it failed to match one of the schemas and doesn't explain why.
It would be really helpful if we could include the errors that caused the failure within the oneOf/allOf/anyOf error messages.
We don't want to include all of the errors themselves because that gets really confusing. I.e. If you are validating
oneOf
and the first one fails but the second one matches, it wouldn't make any sense to include those errors. Instead it should probably get added to the context of the oneOf error.The text was updated successfully, but these errors were encountered: