├── LICENSE ├── README.md ├── composer.json ├── example ├── book.json └── car.json ├── src └── Json │ └── Validator.php └── tests ├── JsonValidatorTest.php ├── bootstrap.php ├── mock ├── additionalProperties.json ├── disallow.json ├── divisibleBy.json ├── empty.json ├── enum-array.json ├── enum-string.json ├── exclusiveMaximum.json ├── exclusiveMinimum.json ├── format │ ├── color.json │ ├── date-time.json │ ├── date.json │ ├── phone.json │ ├── style.json │ ├── time.json │ ├── uri.json │ └── utc-millisec.json ├── invalid-divisibleBy.json ├── invalid-enum.json ├── invalid-items.json ├── items-array.json ├── items-schema.json ├── maxItems.json ├── maxLength.json ├── maximum.json ├── minItems.json ├── minLength.json ├── minimum.json ├── missing-properties.json ├── missing-type.json ├── pattern.json ├── required.json ├── type │ ├── array.json │ ├── boolean.json │ ├── integer.json │ ├── multitype.json │ ├── null.json │ ├── number.json │ ├── object.json │ └── string.json └── uniqueItems.json └── phpunit.xml /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/composer.json -------------------------------------------------------------------------------- /example/book.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/example/book.json -------------------------------------------------------------------------------- /example/car.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/example/car.json -------------------------------------------------------------------------------- /src/Json/Validator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/src/Json/Validator.php -------------------------------------------------------------------------------- /tests/JsonValidatorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/JsonValidatorTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tests/mock/additionalProperties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/additionalProperties.json -------------------------------------------------------------------------------- /tests/mock/disallow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/disallow.json -------------------------------------------------------------------------------- /tests/mock/divisibleBy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/divisibleBy.json -------------------------------------------------------------------------------- /tests/mock/empty.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/mock/enum-array.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/enum-array.json -------------------------------------------------------------------------------- /tests/mock/enum-string.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/enum-string.json -------------------------------------------------------------------------------- /tests/mock/exclusiveMaximum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/exclusiveMaximum.json -------------------------------------------------------------------------------- /tests/mock/exclusiveMinimum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/exclusiveMinimum.json -------------------------------------------------------------------------------- /tests/mock/format/color.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/color.json -------------------------------------------------------------------------------- /tests/mock/format/date-time.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/date-time.json -------------------------------------------------------------------------------- /tests/mock/format/date.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/date.json -------------------------------------------------------------------------------- /tests/mock/format/phone.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/phone.json -------------------------------------------------------------------------------- /tests/mock/format/style.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/style.json -------------------------------------------------------------------------------- /tests/mock/format/time.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/time.json -------------------------------------------------------------------------------- /tests/mock/format/uri.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/uri.json -------------------------------------------------------------------------------- /tests/mock/format/utc-millisec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/format/utc-millisec.json -------------------------------------------------------------------------------- /tests/mock/invalid-divisibleBy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/invalid-divisibleBy.json -------------------------------------------------------------------------------- /tests/mock/invalid-enum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/invalid-enum.json -------------------------------------------------------------------------------- /tests/mock/invalid-items.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/invalid-items.json -------------------------------------------------------------------------------- /tests/mock/items-array.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/items-array.json -------------------------------------------------------------------------------- /tests/mock/items-schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/items-schema.json -------------------------------------------------------------------------------- /tests/mock/maxItems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/maxItems.json -------------------------------------------------------------------------------- /tests/mock/maxLength.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/maxLength.json -------------------------------------------------------------------------------- /tests/mock/maximum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/maximum.json -------------------------------------------------------------------------------- /tests/mock/minItems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/minItems.json -------------------------------------------------------------------------------- /tests/mock/minLength.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/minLength.json -------------------------------------------------------------------------------- /tests/mock/minimum.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/minimum.json -------------------------------------------------------------------------------- /tests/mock/missing-properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "object" 3 | } -------------------------------------------------------------------------------- /tests/mock/missing-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/missing-type.json -------------------------------------------------------------------------------- /tests/mock/pattern.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/pattern.json -------------------------------------------------------------------------------- /tests/mock/required.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/required.json -------------------------------------------------------------------------------- /tests/mock/type/array.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "array" 3 | } -------------------------------------------------------------------------------- /tests/mock/type/boolean.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "boolean" 3 | } -------------------------------------------------------------------------------- /tests/mock/type/integer.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "integer" 3 | } -------------------------------------------------------------------------------- /tests/mock/type/multitype.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : ["string", "number"] 3 | } -------------------------------------------------------------------------------- /tests/mock/type/null.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "null" 3 | } -------------------------------------------------------------------------------- /tests/mock/type/number.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "number" 3 | } -------------------------------------------------------------------------------- /tests/mock/type/object.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/type/object.json -------------------------------------------------------------------------------- /tests/mock/type/string.json: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "string" 3 | } -------------------------------------------------------------------------------- /tests/mock/uniqueItems.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/mock/uniqueItems.json -------------------------------------------------------------------------------- /tests/phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hasbridge/php-json-schema/HEAD/tests/phpunit.xml --------------------------------------------------------------------------------