json-schema
json-schema copied to clipboard
JSON Schema validator for PHP
just a typo I've noticed
Currently the validation stops if an error occurs. https://github.com/opis/json-schema/blob/c48df6d7089a45f01e1c82432348f2d5976f9bfb/src/Schemas/ObjectSchema.php#L114 So if for example a required property is missing, the available properties are not validated at all. Actually we need to...
We're currently having issues with the validator due to e-mail addresses like the following are being rejected: ``` [email protected] ``` These e-mail addresses are, however, completely valid, so the validator...
Based on your documentation it could just be doing exactly as described: From | To | Result -- | -- | -- string | integer | try to parse the...
I tried to validate one of the examples provided in https://github.com/OAI/OpenAPI-Specification and it does not validate. The validation error doesn't seem correct to me: ``` Array ( [/webhooks/newPet/post/requestBody/content/application~1json/schema] => Array...
Sometimes schema files have more specific `$id`s than their well-known/canonical URLs. E.g., `https://jsonapi.org/schema` vs. `https://jsonapi.org/schemas/spec/v1.0/draft` I may be using a local file with that more specific/versioned `$id`, but other schemas...
I am aware that the `ValidationResult` returned by `validate()` can contain a `ValidationError`. Does this library provide a way to turn a `ValidationError` into an error text that can be...
Hi, I would like to use JsonSchema in my PHP project, but also I am interested if it can (an how) be used with swagger-php to document API. Thank you...
Given a schema like: ``` { "type": "object", "properties": { "readAndWrite": {"type": "string"}, "readOnly": {"type": "string", "readOnly": true}, "writeOnly": {"type": "string", "writeOnly": true} }, "required": ["readAndWrite", "readOnly", "writeOnly"] } ```...