2017 © Pedro Peláez
 

library jsonschema

image

zweifisch/jsonschema

  • Saturday, September 21, 2013
  • by zf
  • Repository
  • 1 Watchers
  • 0 Stars
  • 97 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

a partially implemented json schema validator Build Status, (*1)

$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, (*2)

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
  • ...

The Versions

21/09 2013

dev-master

9999999-dev

  Sources   Download

MIT

The Development Requires

by Feng Zhou

21/09 2013

v0.0.1

0.0.1.0

  Sources   Download

MIT

The Development Requires

by Feng Zhou