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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sphinx_json_schema-0.1b4.tar.gz
.
File metadata
- Download URL: sphinx_json_schema-0.1b4.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e15553a86282ee1176065abf966d16f92bb6866d0ad1fad22b500d400ca13c2e |
|
MD5 | e216e48bb82a1797090f5f71ff5e58dd |
|
BLAKE2b-256 | ceed159ba79f2e38aee0649f7a50b792c35397e57ef7bd7a964ec89c0ed12364 |