Combine required and dependentRequired error messages#160
Combine required and dependentRequired error messages#160Sam-61s wants to merge 2 commits intohyperjump-io:mainfrom
Conversation
jdesrosiers
left a comment
There was a problem hiding this comment.
Try again. You should end up with one error handler that handles required, dependentRequired, and the array form of dependencies. There doesn't need to be a separate error handler for each keyword. They're defined separately specifically for that reason.
|
Thanks for the clarification. I plan to unify The unified handler will consolidate missing properties into a single Does that match your expectation? |
|
Yep. That sounds right. |
When
requiredanddependentRequiredfail at the same instance location, they previously produced multiple duplicate messages. This change consolidates those failures into a singlerequired-message, combining and deduplicating missing properties while preserving schema locations.Adds test coverage for the original issue scenario and keeps existing
dependentRequiredand dependency behavior unchanged.Fixes #134