2017 © Pedro Peláez
 

library jsonschema-input-validator

image

hskrasek/jsonschema-input-validator

  • Thursday, May 31, 2018
  • by hskrasek
  • Repository
  • 1 Watchers
  • 9 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

OpenAPI Schema to JSON Schema Converter

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This package provides a wrapper around JSON Guard, allowing you to get a ProblemDetails object representing any errors with the data being validated., (*2)

Install

Via Composer, (*3)

``` bash $ composer require hskrasek/jsonschema-input-validator, (*4)


## Usage ``` php <?php use HSkrasek\JSONSchema\Validator; $validator = new Validator($data, $schema); if ($validator->fails()) { $problemDetails = $validator->getProblemDetails(); // Render problem details somehow return json_encode($problemDetails); }

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email hunterskrasek@me.com instead of using the issue tracker., (*8)

Credits

License

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

The Versions

31/05 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

31/05 2018

0.1.1

0.1.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

14/02 2018

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires