$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.
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.