skillfed

sphinx-jsonschema

Sphinx extension to display JSON Schema

sphinx-jsonschema v1.19.2 186.5K downloads/30d#9,984 on PyPI83
Copyleft license GPLv3 Abandoned released

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-jsonschema

uv

uv add sphinx-jsonschema

poetry

poetry add sphinx-jsonschema

Installing 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

Development Status :: 4 - BetaEnvironment :: PluginsFramework :: Sphinx :: ExtensionIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Documentation :: SphinxTopic :: Software Development :: Documentation

Tags

sphinx json schema documentationdisplay json schema in docssphinx schema renderingjson schema documentation extensionsphinx directive jsondocument api schemasjson schema visualization sphinx
sphinx-extensionjson-schemadocumentation-generation

More Sphinx packages

docstring-parser

Parses Python docstrings in ReST, Google,…

permissive · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

sphinxcontrib-qthelp

A Sphinx extension that converts documentation…

permissive · top 1,000 on PyPI

marshmallow-jsonschema

Converts marshmallow schemas into JSON Schema…

permissive · top 5,000 on PyPI

json-ref-dict

Provides a dict-like interface to JSONSchema…

permissive · top 15,000 on PyPI

sphinx_mdinclude

Sphinx extension that lets you include and…

permissive · top 15,000 on PyPI

sphinxcontrib.datatemplates

A Sphinx extension that renders…

permissive · top 15,000 on PyPI

jsonschema-specifications

Provides JSON Schema metaschemas, vocabularies,…

permissive · top 100 on PyPI

jsonschema-spec

Provides an object-oriented interface to…

permissive · top 5,000 on PyPI

referencing

Resolves JSON references according to JSON…

permissive · top 100 on PyPI

jschon

Validates JSON data against JSON Schema (drafts…

permissive · top 15,000 on PyPI

sphinx-data-viewer

Adds an interactive data viewer to Sphinx…

permissive · top 15,000 on PyPI

GitHubKit-schemas

Provides GitHub API schemas and models for…

permissive · top 15,000 on PyPI