-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
If there's a const or enum, a type error message is unhelpful.
{
"type": "string"
"const": "foo"
}42Error messages:
- Expected a string
- Expected exactly "foo"
The type message isn't helpful because the const message is more specific. To deal with this problem, we can combine the type handler with the const/enum handler and display only the most specific message.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels