json-schema
json-schema copied to clipboard
JSON Schema validator for PHP
@sorinsarca Fatal error: Uncaught Error: Class 'Opis\Uri\Uri' not found in D:\vijay\wamp64\www\test2\json-schema-master\src\Uri.php:23
Hi, The regular expression defined in the class DateTimeFormats does not cover ISO 8601 encoded duration. For example a duration like P2Y1D is not recognized as valid. As far as...
I was unable to find a simple web form validation example using Opis JSON Schema. The examples from Opis JSON Schema show the input data to be always in a...
Given the schema: ``` "type" => "string", "enum" => ["en","hu","de","sk"], "default" => "en", ``` I want to use the string value in my code after the validation. However i could...
Seems that the `$ref` is not resolved correctly, if used in sub-properties. My schema looks something like this: ```json { "type": "string", "format": "select", "enum": { "$ref": "/some/example/subPath" } }...
I have data: ```JSON { "empty_string": "asdf" } ``` and schema: ```JSON { "type": "object", "properties": { "empty_string": { "type": "string", "maxLength": 0 } } } ``` and php code:...
PHP 8.2 is the current relevant version, let's make sure the library works there.
#123 Dealing with float is too complicated. I add some test to help to understand but it's not working well for all cases. You can find some examples here :...
In the documentation for Conditional subschemas (https://opis.io/json-schema/2.x/conditional-subschemas.html), under the entry "If-Then-Else", the examples contain an error: Input Status "ab" valid - string of length 2 This should be invalid as...
Dear all, I'm currently using schema downloaded here : https://hl7.org/fhir/R4/fhir.schema.json.zip Suppose that I would like to validate against `Encounter` Is this the correct code for that ``` public function validation($request)...