JSON Schema Specifications
raw JSON → 2025.9.1 verified Tue May 12 auth: no python install: verified quickstart: stale
A Python package providing JSON support files from the JSON Schema Specifications, including metaschemas and vocabularies, packaged for runtime access as a referencing-based Schema Registry. Current version: 2025.9.1. Release cadence: Regular updates with recent releases in 2025 and 2024.
pip install jsonschema-specifications Common errors
error ModuleNotFoundError: No module named 'jsonschema.compat' ↓
cause This error occurs when a project using an older version of `jsonschema` (pre-4.0) attempts to import the `jsonschema.compat` module, but the installed `jsonschema` package has been updated to version 4.0 or higher, where this module was removed.
fix
Downgrade the
jsonschema package to a version below 4.0, for example: pip install 'jsonschema<4.0' or pip install -U 'jsonschema<4.0'. Alternatively, update your code to no longer rely on jsonschema.compat if possible. error ImportError: cannot import name 'validate' from 'jsonschema' ↓
cause This error typically arises when attempting to import the `validate` function directly from the `jsonschema` package, which is not its primary location in newer versions, or due to version mismatches.
fix
Ensure you are importing
validate from jsonschema.validate instead of directly from jsonschema: from jsonschema import validate. If the issue persists, try upgrading jsonschema to the latest version: pip install --upgrade jsonschema. error jsonschema.exceptions.RefResolutionError: Could not resolve schema reference ↓
cause This error occurs when the `jsonschema` validator (which relies on `jsonschema-specifications` for standard metaschemas) cannot find or access a schema referenced by a `$ref` keyword, often due to incorrect paths, missing local files, or unconfigured remote resolvers.
fix
Ensure all
$ref paths are correct and accessible. For local files, provide an appropriate base URI or load referenced schemas into the resolver's registry explicitly. For remote references, configure a custom resolver or ensure the URIs are resolvable. Consider using referencing.Registry to manage your schemas. Warnings
breaking The `get_schema` function has been removed from the top-level `jsonschema_specifications` module, or its access path has changed, resulting in an `AttributeError`. Users previously calling `jsonschema_specifications.get_schema` will encounter this error. ↓
fix Consult the `jsonschema_specifications` documentation for the updated method to retrieve schemas. The `get_schema` functionality may have been moved to a submodule (e.g., `jsonschema_specifications.schemas.get_schema`) or replaced by an alternative API.
deprecated Support for Python versions below 3.9 has been deprecated. ↓
fix Upgrade to Python 3.9 or later to ensure compatibility.
breaking The function 'jsonschema_specifications.get_schema' has been removed or renamed. ↓
fix Update code to use the new API for accessing schemas; consult the library's release notes or documentation for the updated method of retrieving specifications.
Install compatibility verified last tested: 2026-05-12
python os / libc status wheel install import disk
3.10 alpine (musl) - - 0.17s 20.5M
3.10 slim (glibc) - - 0.11s 21M
3.11 alpine (musl) - - 0.26s 22.5M
3.11 slim (glibc) - - 0.20s 23M
3.12 alpine (musl) - - 0.19s 14.4M
3.12 slim (glibc) - - 0.20s 15M
3.13 alpine (musl) - - 0.18s 13.7M
3.13 slim (glibc) - - 0.18s 14M
3.9 alpine (musl) - - 0.16s 20.0M
3.9 slim (glibc) - - 0.14s 20M
Imports
- jsonschema_specifications
import jsonschema_specifications
Quickstart stale last tested: 2026-04-23
import jsonschema_specifications
# Access a specific schema
schema = jsonschema_specifications.get_schema('draft-2020-12/schema')
# Use the schema for validation
# ...