JSON-Schema-Test-Suite
JSON-Schema-Test-Suite copied to clipboard
A language agnostic test suite for the JSON Schema specifications
This suite is generally not versioned (despite such things having been requested in the past). Regardless though, it is important to define exactly what sorts of backwards compatibility we offer....
This document is undoubtedly incomplete and can be iterated on. It represents, to the best of my knowledge, the *existing* process I have followed myself since the repository's inception, with...
Nothing in the specification says that allOf subschemas are evaluated in order; if they are evaluated in the reverse order an erroneous implementation could still pass this test.
This PR breaks our existing `optional/` directory into 4 new directories, and sorts existing tests into the 4 new directories: `may/` and `should/` now represent explicitly recommended or allowed behavior....
no time to create a PR right now, so dropping this here to come back to, and for discussion in case for some reason this is controversial: schema: `{ "maxLength":...
I have started writing a collection of schemas that violate some part of JSON schema's specifications or are in some way vexatious to an implementation. This is a topic that...
Following up on #247 and in light of @jdesrosiers' #652, I think we can do better for output tests. The current test structure presents a JSON Schema that constrains several...
Reference: https://github.com/json-schema-org/JSON-Schema-Test-Suite/blob/bf0360f4b7c51b8f968aabe7f3f49e12b120fc85/tests/draft2020-12/unevaluatedProperties.json#L529 Schema: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "if": { "properties": { "foo": { "const": "then" } }, "required": ["foo"] }, "else": { "properties": { "baz": { "type": "string"...
Assert that hostname format validation fails gracefully on empty strings. This is especially for Python `jsonschema` library that raises an unexpected ValueError exception on `hostname` check (python-jsonschema/jsonschema#1121). Adds similar test...
Resolves #719