zweifisch / jsonschema
v0.0.1
2013-09-21 01:14 UTC
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-18 15:34:23 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
- ...