You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$result->isValid() returns true regardless of what "empty_string" is set to. "", "foo", "asdfasdfasdfs"... any length of string passes the validation.
Setting "maxLength" to any value greater than zero works fine.
Is this intended behavior? This used to work in json-schema 1.1.0, we recently upgraded to 2.3.0 where we found out this issue. I guess technically matching empty strings with pattern: "^$" works.
The text was updated successfully, but these errors were encountered:
I have data:
and schema:
and php code:
$result->isValid()
returns true regardless of what"empty_string"
is set to. "", "foo", "asdfasdfasdfs"... any length of string passes the validation.Setting
"maxLength"
to any value greater than zero works fine.Is this intended behavior? This used to work in json-schema 1.1.0, we recently upgraded to 2.3.0 where we found out this issue. I guess technically matching empty strings with pattern: "^$" works.
The text was updated successfully, but these errors were encountered: