Uncaught `ValueError` from `format: date` / `format: time` when the instance contains a NUL byte
#937 · PHP · ★ 3.6k · MIT · updated 3d ago
Validating a string containing a NUL byte against {"type": "string", "format": "date"} throws instead of reporting the instance invalid. <?php require 'vendor/autoload.php'; $validator = new JsonSchema\Validator(); $data = "2020-01-01\x00"; $validator->validate($data,…