json-schema icon indicating copy to clipboard operation
json-schema copied to clipboard

JSON Schema validator for PHP

Results 42 json-schema issues
Sort by recently updated
recently updated
newest added

Hi, I'm having some trouble validating my schema with Opis 1.x. I guess I'm missing something from the way Opis works and I'm hopping you could maybe bring some light...

Hi, I see that we can specify a $error in a schema, but I can't find any documentation about it and how to use it. ```json { "type": "object", "properties":...

`Helper::convertAssocArrayToObject` vs `Helper::toJSON`. It's seem the same feature.

Hello I don't understand how to use the cast feature. ```php $data = json_encode(['integer_cast' => null]); // Create object from JSON: $input = json_decode($data); $validator = new Validator(); $validator->validate( $input,...

Thank you very much for the library it is very nicely written. I was just wondering the reason behind why the scheme ID needs to be a URL when it...

Your implementation of the [`$data` keyword](https://opis.io/json-schema/2.x/data-keyword.html) results in invalid schemas (they fail validation against the meta-schema). For example ```json { "type": "integer", "minimum": { "$data": "/minValue" } } ``` violates...

XMLspy successfully validates JSON schema A containing the following valid file URI reference to schema B on the local C drive : `"$ref": "file:///C:/Git/Test/schemaValidate/user/schemaB.json#"` ie. as long as schemaB.json exists...

Hello. I've noticed from the docs that this library supports a multitude of custom keywords. Vocabularies were introduced with draft 2019-09 (which this library supports) to manage custom keywords. Additionally,...

I have this piece of code: ```php $validator = new Validator(); $schema = 'https://files.matronator.com/public/mtrgen/1.0.2/mtrgen-template-schema.json'; $result = $validator->validate($parsed, $schema); return $result->isValid(); ``` And it throws schema not found exception. What am...