hskrasek/jsonschema-input-validator
Composer 安装命令:
composer require hskrasek/jsonschema-input-validator
包简介
README 文档
README
This package provides a wrapper around JSON Guard, allowing you to get a ProblemDetails object representing any errors with the data being validated.
Install
Via Composer
$ composer require hskrasek/jsonschema-input-validator
Usage
<?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.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email hunterskrasek@me.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-14