Skip to main content

JSON Schema renderer for Sphinx

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_json_schema-0.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

sphinx_json_schema-0.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_json_schema-0.2.tar.gz.

File metadata

  • Download URL: sphinx_json_schema-0.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sphinx_json_schema-0.2.tar.gz
Algorithm Hash digest
SHA256 bbdeafbe9ade54d3920bbc1d29c7cf12ea7de526f50c497ef0b0cfa30982d3fd
MD5 c0142280e0cff1785039bbceba3700e6
BLAKE2b-256 4d60062d8e9ccded5f176d023aeaa402bec70aa4b62e41561cd9c220a7310a11

See more details on using hashes here.

File details

Details for the file sphinx_json_schema-0.2-py3-none-any.whl.

File metadata

  • Download URL: sphinx_json_schema-0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for sphinx_json_schema-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c81b8836a9b8a96005913602aa4c41e620a9f5352aae31ded5885c5a0b6aef4b
MD5 58383c4f648b1e96c8053468cc3fa8e1
BLAKE2b-256 fa39c856407a91b67450db17c8eb4be92c5001c0c54d64c9f40247fe7bda62f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page