zweifisch / jsonschema
Installs: 116
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zweifisch/jsonschema
Requires (Dev)
This package is not auto-updated.
Last update: 2025-10-06 20:07:10 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
- ...