json-schema
json-schema copied to clipboard
JSON Schema validator for PHP
Enum with both type with null, and string thow a validation error. ```json { "type": ["string", null], "enum": ["A", "B"] } ``` Today we need to use ```json { "oneOf":...
If you try to validate if the number 400.01 is a multiple of 0.01, you get an error that is not expected. I have bcmath installed and thus Helper::isMultipleOf is...
Hello! I have general strategic question. This is not a bug or error. Is it possible to add functionality to the package that will return a fully resolved schema, replacing...
I am following [the official documentation](https://opis.io/json-schema/2.x/php-validator.html#data-validation) but I have bumped into a fundamental issue at the first try ```
The current regex pattern causes an incorrect identification of invalid hostnames as anything longer than 26 characters which is not correct. Handling of this is shifted from regex to a...
IN 1.x branch the check for Valid URI is incorrectly calling any URI with a host name greater than 26 characters invalid. It comes down to [this REGEX pattern](https://github.com/opis/json-schema/blob/1.x/src/URI.php#L40). We...
**Version used**: 2.3.0 **Problem description**: When using a custom error message with the argument `{data:value}` in the error message template, if the data value is `null`, the error message will...
I would like to transfer form data in JSON. The file uploads should be specified in the [Data URI schema](https://en.wikipedia.org/wiki/Data_URI_scheme). My JSON schema looks like this. ```json { "type" :...
How to display all the fields in allOf that do not meet the conditions at once? My Jsonschem is like this { "$schema":"", "$id":"", "$comment":"", "$defs":{}, "$type:"object", "required":[], "$properties":{}, "$additionalProperties":false,...