jsonschema icon indicating copy to clipboard operation
jsonschema copied to clipboard

An implementation of the JSON Schema specification for Python

Results 91 jsonschema issues
Sort by recently updated
recently updated
newest added

When the instance contains non-string keys in a dictionary and they are checked by the re module, because there are patternProperties defined, the TypeError from re.search is neither prevented nor...

Enhancement

I just spent a few minutes digging into a test failure which boiled down to the following: ```python from jsonschema import validate schema = { "$schema": "http://json-schema.org/draft-04/schema#", "const": None, }...

Enhancement
Dialects v2

This PR adds an `extra_info` attribute on `ValidationError`, which is used to indicate the missing property in errors from the `required` validator. This should resolve issue #119, and can be...

I need to parse a `jsonschema.exceptions.ValidationError` object to help produce a more useful error message to my customers, but I am not sure that the fields of the `ValidationError` object...

Bug
Help Wanted
Error Reporting

In general, validation is lazy -- if only one error is needed (in the sense that it is known that an instance is invalid), only one is produced. There are...

Enhancement
Error Reporting
Dialects v2

This seems like a correct assumption (both at the minute and likely forever, which probably should be better documented) but if it ever were not the case, it'd silently not...

Bug
Error Reporting

To reproduce: ``` $ python --version Python 3.7.10 (51efa818fd9b, Apr 04 2021, 12:03:51) [PyPy 7.3.4 with GCC Apple LLVM 12.0.0 (clang-1200.0.32.29)] ``` ``` pip install jsonschema requests ``` ```python import...

Bug

Given the following malformed reference: ```json "$ref": "common.json#properties/version" ``` jsonschema is resolving it as if it were a JSON Pointer. However, it is not, since according to [section 3](https://tools.ietf.org/html/rfc6901#section-3) of...

Bug

In issue #364 and the related PR the type checker was expanded to allow redefining how jsonschema identifies/validates a type, with the intention of allowing a named tuple to be...

Enhancement
Dialects v2

We have an all-in-one [schema file](https://github.com/GSA/ckanext-datajson/blob/master/ckanext/datajson/pod_schema/federal-v1.1/dataset.json#L722-L724), within which the property `subOrganizationOf` is referencing to its parent `organization` by `"$ref": "#"`. But when validators.py hits this $ref, it tries to follow...

Needs Simplification