sphinx-jsonschema
Sphinx extension to display JSON Schema
What it is and what it does
sphinx-jsonschema is a Sphinx documentation extension that lets you embed and render JSON Schema definitions directly in your documentation. You can reference schemas from URLs, local files, or Python objects, and use JSON Pointer notation to display subschemas. The extension supports inline reStructuredText markup in schema titles and descriptions, and includes custom extensions like $$target for cross-references and $$description for multi-line descriptions.
The package has been in development since 2017-01-29 and implements most JSON Schema Draft 4 features plus the examples keyword from Draft 7. It has no runtime dependencies beyond Sphinx itself, but the repository is now archived and marked abandoned, meaning maintenance and compatibility updates are no longer active.
Use it for:
- Embed API specification schemas in REST API documentation for developers to understand request/response structures
- Display configuration file schema definitions in project documentation to guide users on valid settings
- Reference shared schema definitions across multiple documentation pages using JSON Pointer and cross-references
- Render complex nested schemas with formatted descriptions and tables using reStructuredText markup
- Load schemas from external URLs or files to keep documentation in sync with canonical schema definitions
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Sphinx extension that renders JSON Schema definitions inline or from external files directly into documentation, with support for JSON Pointer notation, cross-references, and reStructuredText markup.
Yes, with conditions. The extension is stable and feature-complete for JSON Schema Draft 4 documentation, with no known vulnerabilities. However, the abandoned maintenance status and archived repository mean no future bug fixes or Sphinx compatibility updates are guaranteed. Install only if your Sphinx version is compatible with 1.19.2 and you do not expect ongoing support.
Install
sphinx-jsonschema on PyPI
pip
pip install sphinx-jsonschemauv
uv add sphinx-jsonschemapoetry
poetry add sphinx-jsonschemaInstalling sphinx-jsonschema
Before you install
High install friction: the package has no runtime dependencies but is marked abandoned with an archived repository. The last commit is recent (2025-12-01), but the maintenance status is abandoned, meaning bug fixes and compatibility updates are unlikely.
License in practice
Licensed under GPLv3 (copyleft). Any project that distributes documentation built with this extension must comply with GPLv3 terms, including source disclosure if the extension is modified or bundled.
Quickstart
pip install sphinx-jsonschema
In conf.py:
extensions = ['sphinx-jsonschema']
In your .rst file:
.. jsonschema:: http://some.domain/spec.json
Or inline:
.. jsonschema::
{"type": "string", "minLength": 10}
Requires Sphinx to be installed and a working Sphinx documentation project; the extension must be added to the extensions list in conf.py to function.
Verify before relying
- Compatibility with Sphinx 9.0 and later versions beyond the reported fix in 1.19.2
- Whether the abandoned status affects long-term stability or if the package is feature-complete and stable enough for production use
- Support for JSON Schema Draft 7 and later versions beyond the stated 'examples' keyword support
Package facts
| License | GPLv3 (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 256 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 186,502/month — #9,984 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinx_jsonschema-1.19.2.tar.gz
Keywords: sphinx, json, schema
Tags
More Sphinx packages
Parses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
sphinxcontrib-qthelpA Sphinx extension that converts documentation…
permissive · top 1,000 on PyPI
marshmallow-jsonschemaConverts marshmallow schemas into JSON Schema…
permissive · top 5,000 on PyPI
json-ref-dictProvides a dict-like interface to JSONSchema…
permissive · top 15,000 on PyPI
sphinx_mdincludeSphinx extension that lets you include and…
permissive · top 15,000 on PyPI
sphinxcontrib.datatemplatesA Sphinx extension that renders…
permissive · top 15,000 on PyPI
jsonschema-specificationsProvides JSON Schema metaschemas, vocabularies,…
permissive · top 100 on PyPI
jsonschema-specProvides an object-oriented interface to…
permissive · top 5,000 on PyPI
referencingResolves JSON references according to JSON…
permissive · top 100 on PyPI
jschonValidates JSON data against JSON Schema (drafts…
permissive · top 15,000 on PyPI
sphinx-data-viewerAdds an interactive data viewer to Sphinx…
permissive · top 15,000 on PyPI
GitHubKit-schemasProvides GitHub API schemas and models for…
permissive · top 15,000 on PyPI