zweifisch / jsonschema
v0.0.1
2013-09-21 01:14 UTC
Requires (Dev)
This package is not auto-updated.
Last update: 2026-03-09 22:15:29 UTC
README
a partially implemented json schema validator
$validator = new \jsonschema\Validator; if($errors = $validator->validate($input, $schema)) { foreach($errors as $error) { list($constrain, $detail, $key) = $error; } } else { // $input is valid }
also validate schema
try { $errors = $validator->validate($input, $schema, true); } catch(Exception $e) { // $schema is invalid }
TBD
- array as
type - type
any dependencies- canonical dereferencing(inline dereferencing is supported)
id- ...