Skip to main content

sphinx-json-schema

A JSON Schema renderer for Sphinx

Installation

As simple as it can be with pip:

pip install sphinx-json-schema

Usage

Add the extension name to your conf.py:

extensions = [
   ...
   'sphinx_json_schema',
   ...
]

If necessary, add a root directory to look for json schemas:

json_schema_root_dir = os.path.join('path', 'to', 'root', 'dir')

In your documentation:

.. json-schema:: path/to/json/schema.json

The file is looked up relatively from the .rst file the directive is called in, or, if not found from the json_schema_root_dir specified in the conf.py file.

allOf, oneOf, anyOf, not support

sphinx_json_schema supports the allOf, oneOf, anyOf and not keywords. It can also parse references to other schemas. The final JSON output is the result of the operations and inclusions of other schemas. This means it can be quite long even if the original .json file is very short!

Metadata

Release files for sphinx-json-schema 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-json-schema 0.2
File Size Uploaded Provenance Actions
sphinx_json_schema-0.2.tar.gz 7.4 kB Without provenance Details for sphinx_json_schema-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-json-schema 0.2
File Interpreter ABI Platform Actions
sphinx_json_schema-0.2-py3-none-any.whl Python 3 none any Details for sphinx_json_schema-0.2-py3-none-any.whl

Total release size: 17.5 kB

Release files / sphinx_json_schema-0.2.tar.gz

Download URL sphinx_json_schema-0.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bbdeafbe9ade54d3920bbc1d29c7cf12ea7de526f50c497ef0b0cfa30982d3fd
BLAKE2b-256 checksum
How to use checksums
4d60062d8e9ccded5f176d023aeaa402bec70aa4b62e41561cd9c220a7310a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

Release files / sphinx_json_schema-0.2-py3-none-any.whl

Download URL sphinx_json_schema-0.2-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c81b8836a9b8a96005913602aa4c41e620a9f5352aae31ded5885c5a0b6aef4b
BLAKE2b-256 checksum
How to use checksums
fa39c856407a91b67450db17c8eb4be92c5001c0c54d64c9f40247fe7bda62f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

Security for sphinx-json-schema 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page