JsonSchema:PHP Json Schema v4验证程序

时间:2021-04-16 11:52:12
【文件属性】:
文件名称:JsonSchema:PHP Json Schema v4验证程序
文件大小:56KB
文件格式:ZIP
更新时间:2021-04-16 11:52:12
PHP 概述 适用于PHP的草案v4兼容JSON Schema验证器: 模块化设计。 简单的验证界面。 JsonRef取消引用由外部PHP库。 您可以轻松地用另一种替换它。 具有自定义约束条件,可轻松扩展。 草案v4兼容。 没有对超媒体验证/语义验证规范附录的明确支持。 安装 git clone ... && cd JsonSchema/ composer update --no-dev --ignore-platform-reqs 测试 git submodule update --init git clone ... && cd JsonSchema/ composer test 用法 在最简单的情况下,您有一个没有$refs的独立JSON模式: <?php require_once './vendor/autoload.php' ; use JsonDoc \ JsonDoc
【文件预览】:
JsonSchema-master
----composer.json(680B)
----.travis.yml(597B)
----.gitmodules(182B)
----loader.php(706B)
----tests-informal()
--------sample2.php(578B)
--------loader.php(13B)
--------sample3.php(1KB)
--------sample.php(911B)
----composer.lock(53KB)
----design-notes.md(8B)
----tests()
--------bootstrap.php(244B)
--------phpunit.xml(262B)
--------JsonSchemaTestSuiteTest.php(2KB)
--------ConstantConstraintTest.php(970B)
--------JsonSchemaTest.php(2KB)
--------StringConstraintTest.php(1KB)
--------NumericConstraintTest.php(1KB)
--------EmptyConstraintTest.php(866B)
--------test-data()
--------UtilsTest.php(766B)
--------TypeConstraintTest.php(3KB)
--------EnumConstraintTest.php(582B)
--------ObjectConstraintTest.php(2KB)
--------ConstraintTest.php(1KB)
--------SwitchConstraintTest.php(1KB)
--------ArrayConstraintTest.php(2KB)
----TODO.md(175B)
----JsonSchema.php(2KB)
----Constraint()
--------EmptyConstraint.php(5KB)
--------SwitchConstraint.php(3KB)
--------ValidationError.php(2KB)
--------MinItemsConstraint.php(1KB)
--------PropertiesConstraint.php(7KB)
--------FormatConstraint.php(2KB)
--------MinPropertiesConstraint.php(1KB)
--------AllOfConstraint.php(778B)
--------UniqueItemsConstraint.php(1KB)
--------SomeOfConstraint.php(1023B)
--------DependenciesConstraint.php(3KB)
--------PatternConstraint.php(2KB)
--------MinimumConstraint.php(1KB)
--------MaximumConstraint.php(1KB)
--------TypeConstraint.php(3KB)
--------TmplConstraint.php(555B)
--------OneOfConstraint.php(884B)
--------MinLengthConstraint.php(1KB)
--------MaxItemsConstraint.php(1KB)
--------MaxLengthConstraint.php(1KB)
--------MultipleOfConstraint.php(2KB)
--------json_equality_compare_values.php(903B)
--------AnyOfConstraint.php(752B)
--------ItemsConstraint.php(5KB)
--------ConstantConstraint.php(821B)
--------MaxPropertiesConstraint.php(1KB)
--------Exception()
--------Constraint.php(3KB)
--------NotConstraint.php(822B)
--------EnumConstraint.php(2KB)
--------RequiredConstraint.php(2KB)
----.gitignore(13B)
----cli-validator.php(511B)
----README.md(3KB)
----CONFORMANCE.md(4KB)

网友评论