geraintluff / jsv4-php

A (coercive) JSON Schema v4 Validator for PHP
Other
114 stars 31 forks source link

jsv4 doesn't check if string is empty. It return true if strlen(field)== 0 #25

Open veron123 opened 9 years ago

veron123 commented 9 years ago

No validation on string minimum length ?? If someone sends a string field, but it's empty, for example { "address": { "streetAddress": "21 2nd Street", "city": "" }, "phoneNumber": [ { "location": "home", "code": 44 } ] }

city is empty, but is validated true