CC: | bjakubski [...] gmail.com, cybersg [...] gmail.com, gszpetkowski [...] gmail.com |
There is a problem while we want to validate length of the string:
$ perl -MJSON::Schema -e '$s=JSON::Schema->new(q/{"type":"array","items":{"minLength":5,"type":"string"}}/); $a = [qw/a/]; $s->validate($a)'
Unimplemented: POSIX::strlen() is C-specific, use length instead at /usr/lib64/perl5/site_perl/5.12.4/JSON/Schema/Helper.pm line 296
$ perl -MJSON::Schema -e '$s=JSON::Schema->new(q/{"type":"array","items":{"minLength":5,"type":"string"}}/); $a = [qw/a/]; $s->validate($a)'
Unimplemented: POSIX::strlen() is C-specific, use length instead at /usr/lib64/perl5/site_perl/5.12.4/JSON/Schema/Helper.pm line 296