1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-jsonschema
7 SDESC[py310]= Alternate implementation of JSON Schema (3.10)
8 SDESC[v11]= Alternate implementation of JSON Schema (3.11)
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/c1/97/c698bd9350f307daad79dd740806e1a59becd693bd11443a0f531e3229b3
14 DISTFILE[1]= jsonschema-4.17.3-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY310 PY311
20 OPTIONS_STANDARD= none
21 VOPTS[py310]= PY310=ON PY311=OFF
22 VOPTS[v11]= PY310=OFF PY311=ON
24 DISTNAME= jsonschema-4.17.3.dist-info
28 [PY310].RUN_DEPENDS_ON= python-attrs:single:py310
29 python-pyrsistent:single:py310
30 [PY310].USES_ON= python:py310,wheel
32 [PY311].RUN_DEPENDS_ON= python-attrs:single:v11
33 python-pyrsistent:single:v11
34 [PY311].USES_ON= python:v11,wheel
36 [FILE:2431:descriptions/desc.single]
41 |PyPI| |Pythons| |CI| |ReadTheDocs| |Precommit| |Zenodo|
43 jsonschema is an implementation of the [JSON Schema
44 ] specification for Python.
46 .. code-block:: python
48 >>> from jsonschema import validate
50 >>> # A sample schema, like what we'd get from json.load()
52 ... "type" : "object",
54 ... "price" : {"type" : "number"},
55 ... "name" : {"type" : "string"},
59 >>> # If no exception is raised by validate(), the instance is valid.
60 >>> validate(instance={"name" : "Eggs", "price" : 34.99},
64 ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema,
66 +IGNORE_EXCEPTION_DETAIL
67 Traceback (most recent call last):
69 ValidationError: 'Invalid' is not of type 'number'
71 It can also be used from console:
75 $ jsonschema --instance sample.json sample.schema
82 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft202012Validator>`_
85 <https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/validators/#jsonschema.validators.Draft201909Validator>`_,
86 except for dynamicRef / recursiveRef and ``$vocabulary`` (in-progress).
95 that can iteratively report *all* validation errors.
97 * [Programmatic querying]
98 of which properties or items failed validation.
103 jsonschema is available on [PyPI]. You can install using [pip]:
107 $ pip install jsonschema
112 Two extras are available when installing the package, both currently
113 related to format validation:
118 They can be used when installing in order to include additional
123 $ pip install jsonschema'[format]'
125 Be aware that the mere presence of these dependencies – or even the
126 specification of format checks in a schema – do *not* activate format
127 checks (as per the specification).
128 Please read the [format validation documentation] for further details.
135 jsonschema is on [GitHub].
140 a870ad254da1a8ca84b6a2905cac29d265f805acc57af304784962a2aa6508f6 90379 jsonschema-4.17.3-py3-none-any.whl