File: index.rst

package info (click to toggle)
python-jsonschema-specifications 2023.12.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: python: 180; makefile: 21
file content (29 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.. include:: ../README.rst

Resources are exposed via a `referencing.Registry`.

Usage
-----

There is essentially one main object provided, `jsonschema_specifications.REGISTRY`, which is a `referencing.Registry` (or more specifically a `referencing.jsonschema.SchemaRegistry`) containing all of the "official" JSON Schemas.

For full details on using it, see the `referencing documentation <referencing:intro>`, but for example:

.. code::

    from jsonschema_specifications import REGISTRY as SPECIFICATIONS

    DRAFT202012_DIALECT_URI = "https://json-schema.org/draft/2020-12/schema"
    print(SPECIFICATIONS.contents(DRAFT202012_DIALECT_URI))

    # -> prints the Draft 2020-12 meta-schema


Contents
--------

.. toctree::
    :glob:
    :maxdepth: 2

    api