jsonschema-spec
JSONSchema Spec with object-oriented paths
Decision gist · record as of 2026-08-14
Yes, if you need to programmatically inspect or traverse JSONSchema documents with automatic reference resolution. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Not necessary if you only validate data against schemas or parse schemas as raw dicts.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with four straightforward runtime dependencies (pathable, PyYAML, requests, referencing).
- Actively maintained with recent commits; last release was over a year ago but the repository remains active.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must retain copyright and license notices in distributions.
last release 2023-08-16 (1094 days) · last repo commit 2026-07-27 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 924,766 downloads/mo, #4,711 on PyPI
Alternatives
Verify before relying
from jsonschema_spec import SchemaPath
schema = {
"properties": {"info": {"$ref": "#/$defs/Info"}},
"$defs": {"Info": {"properties": {"title": {"type": "string"}}}}
}
path = SchemaPath.from_dict(schema)
info_path = path / "properties" / "info"
with info_path.open() as contents:
print(contents)- Whether the package handles circular $ref chains or other edge cases in schema dereferencing
- Performance characteristics when working with very large or deeply nested schemas
- Whether remote schema fetching via requests is cached or requires manual optimization
What it is and what it does
jsonschema-spec wraps JSONSchema documents in an object-oriented path interface, letting you navigate nested schema structures using forward-slash syntax while automatically resolving $ref pointers to local or remote definitions. Instead of manually parsing dictionaries and tracking reference paths, you construct a SchemaPath from a schema dict and then traverse it like a filesystem—checking key membership, concatenating paths, and opening dereferenced content on demand. The package handles both internal references (like #/$defs/Info) and external URLs, delegating actual HTTP fetches to requests and reference resolution to the referencing library.
This is most useful when you need to inspect or validate schema structure programmatically—for example, walking a schema to extract all property definitions, following $ref chains to understand the full shape of a nested object, or building tools that reason about schema metadata. It sits between raw dict manipulation and full schema validation, offering a cleaner API for schema introspection without enforcing validation rules.
Use it for
- Extract all properties from a JSONSchema by traversing the schema tree and following $ref pointers automatically
- Build API documentation tools that need to walk OpenAPI or JSONSchema specs and resolve references
- Validate that a schema structure is well-formed by checking key existence and dereferencing paths
- Generate code or type definitions from a schema by navigating its structure and collecting metadata
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to programmatically inspect or traverse JSONSchema documents with automatic reference resolution.
The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Not necessary if you only validate data against schemas or parse schemas as raw dicts.
Install
jsonschema-spec on PyPI
Before you install
Low friction installation with four straightforward runtime dependencies (pathable, PyYAML, requests, referencing). Actively maintained with recent commits; last release was over a year ago but the repository remains active.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must retain copyright and license notices in distributions.
Quickstart
from jsonschema_spec import SchemaPath
schema = {
"properties": {"info": {"$ref": "#/$defs/Info"}},
"$defs": {"Info": {"properties": {"title": {"type": "string"}}}}
}
path = SchemaPath.from_dict(schema)
info_path = path / "properties" / "info"
with info_path.open() as contents:
print(contents)
Verify before relying
- Whether the package handles circular $ref chains or other edge cases in schema dereferencing
- Performance characteristics when working with very large or deeply nested schemas
- Whether remote schema fetching via requests is cached or requires manual optimization
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.8.0,<4.0.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagespathablePyYAMLrequestsreferencing |
| Maintenance | Actively maintained 1,094 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 924,766 / month, #4,711 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: jsonschema_spec-0.2.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “schema reference dereferencing”
- jsonschema-specProvides an object-oriented interface to traverse and dereference…
- jsonrefjsonref dereferences JSON Reference objects transparently, replacing…
- jsonschema-pathProvides object-oriented path-based access to JSON Schema documents,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also jsonschema-path · jsonref · json-ref-dict · referencing · sphinx-jsonschema · openapi-schema-validator · marshmallow-jsonschema · prance · openapi-spec-validator · jsonschema