jsonschema
jsonschema copied to clipboard
An implementation of the JSON Schema specification for Python
Python 3.11 now supports [exception groups](https://peps.python.org/pep-0654/) for grouping together multiple (simultaneous, unrelated) exceptions. This seems to suit us -- right now we have: * `Validator.iter_errors`, aimed at returning (not raising)...
> **New in draft 2019-09** The `deprecated` keyword is a boolean that indicates that the instance value the keyword applies to should not be used and may be removed in...
In large schemas, understanding which `$ref` is being referenced when an error occurs can be helpful in debugging. We used to refer to the history of `$ref` with (ill-mannered) code...
Hi, first of all, thanks for all your work with this package. All in all i think it works great and really does what it should and is supposed to...
These two are redundant with the now-anyways-needed `Specification` objects from referencing. Either as part of this or some time in the future there will be a way of specifying which...
I am using jsonschema to validate JSON data against a schema using "unevaluatedProperties": False. When my data contains an unexpected property, the error message lists all the evaluated properties as...
I haven't had time to focus on `jsonschema` typing much recently, but I want to get things back on track. The first thing to do is to correct any drift...
```python from jsonschema import validate instance = 9007199254740995 validate(instance, schema={"type": "integer", "multipleOf": 11}) # passes validate(instance, schema={"type": "integer", "multipleOf": 11.0}) # fails ``` I'm pretty sure that this is a...
Hello! I noticed that in schemas using 'allOf' and unevaluatedProperties, when there is an error in a subschema, instead of showing the relevant error, unevaluatedProperties is (sometimes?) shown instead. This...
I'm working with a custom metaschema that is a superset of draft 4, is there/will there be a way to select the draft 4 dialect when creating a Validator class?...