Skip to content

sander-bol/json-guard

 
 

Repository files navigation

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.

Install

Via Composer

composer require league/json-guard

Usage

Complete documentation is available here.

Pull requests for documentation should be sent to the gh-pages branch.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

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

$ node tests/server.js

Alternatively, if you want to use the php server:

$ php -S localhost:1234 -t ./vendor/json-schema/JSON-Schema-Test-Suite/remotes/

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

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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

About

Validation of json-schema.org compliant schemas.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.2%
  • JavaScript 0.8%