Ignore format errors if value is empty
Closed this issue · 1 comments
rudasn commented
Just a thought if format
errors should be suppressed if the value is empty.
For example
{
"type": "string",
"format": "email"
}
should not return an error if the document has an empty string.
acornejo commented
I don't think so, since an empty string is NOT a valid email.
in any case, you should take this question up with the mantainers of the json-schema specification, jjv will comply to whatever the schema dictates (i.e. I do not make up the rules for validation, I only implement them).