-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
The messages produced by the maxLength and minLength handlers can be collapsed.
{
"allOf": [
{ "maxLength": 2 },
{ "maxLength": 3 }
]
}This produces multiple messages that could be combined
- Expected a string with no more than 2 characters
- Expected a string with no more than 3 characters
This can be collapsed to
- Expected a string with no more than 2 characters
No handlers need to be combined for this one, but the maxLength and minLength handlers will need to be updated to track the lowest/highest number of characters allowed/required so it produces only one message.
Metadata
Metadata
Assignees
Labels
No labels