Validation of compliant schemas.
PHP JavaScript
Latest commit feafc27 Jan 18, 2017 @yuloh yuloh committed on GitHub Cleanup Dereferencer (#87)
* Extract schema_extract helper from Dereferencer

* Extract resolveReference method

* Move is_internal_ref to a helper function

JSON Guard

Software License Build Status Coverage Status Quality Score Documentation

This package is a validator for JSON Schema. It fully supports draft 4 of the specification.

Notable Features:

  • Passes the entire draft 4 JSON Schema Test Suite.
  • Fully supports remote references.
  • Fully supports circular references.
  • Unique error codes for every validation error.


Via Composer

composer require league/json-guard


Complete documentation is available here.

Change log

Please see CHANGELOG for more information about what has changed recently.


You need to run a web server while testing. A simple node server is in the tests directory.

$ node tests/server.js

Once the server is running, you can run the test suite.

$ composer test


Please see CONTRIBUTING for details.


This package is pre 1.0 so anything can break at any time. That being said, breaking changes are typically released in the minor version (the x in 0.x.y).


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.