Name Description Size
__init__.py An implementation of JSON Schema for Python The main functionality is provided by the validator classes for each of the supported JSON Schema versions. Most commonly, `jsonschema.validators.validate` is the quickest way to simply validate a given instance under a schema, and will create a validator for you. 2187
__main__.py 40
_format.py A ``format`` property checker. JSON Schema does not mandate that the ``format`` property actually do any validation. If validation is desired however, instances of this class can be hooked into validators to enable format validation. `FormatChecker` objects always return ``True`` when asked about formats that they do not know how to validate. To add a check for a custom format use the `FormatChecker.checks` decorator. Arguments: formats: The known formats to validate. This argument can be used to limit which formats will be used during validation. 14575
_legacy_validators.py Ignore an ``$id`` sibling of ``$ref`` if it is present. Otherwise, return the ID of the given schema. 10549
_types.py A :kw:`type` property checker. A `TypeChecker` performs type checking for a `Validator`, converting between the defined JSON Schema types and some associated Python types or objects. Modifying the behavior just mentioned by redefining which Python objects are considered to be of which JSON Schema types can be done using `TypeChecker.redefine` or `TypeChecker.redefine_many`, and types can be removed via `TypeChecker.remove`. Each of these return a new `TypeChecker`. Arguments: type_checkers: The initial mapping of types to their checking functions. 5425
_utils.py Dictionary which uses normalized URIs as keys. 10429
_validators.py 15956
benchmarks
cli.py The ``jsonschema`` command line. 8518
exceptions.py Validation errors, and some surrounding helpers. 11336
protocols.py typing.Protocol classes for jsonschema interfaces. 7295
schemas
validators.py Creation and extension of validators, with implementations for existing drafts. 38150