-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
The required and dependentRequired error handlers use the same message. That can result in what looks like duplicate messages.
{
"allOf": [
{ "required": ["foo"] },
{ "required": ["foo", "bar"] },
{
"dependentRequired": {
"a": ["b"]
}
}
]
}This can result in multiple similar and sometimes redundant messages
- Missing required property: foo
- Missing required properties: foo and bar
- Missing required property: b
This can be collapsed into a single message
- Missing required properties: foo, bar, and b
The required and dependentRequired keywords will need to be combined into a single error handler. I think we can even combine dependencies, or at least part of it into that combined handler.