Registry / serialization / jsonschema-specifications

jsonschema-specifications

JSON →
library2025.9.1pypypi✓ verified 25d ago

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
INSTALL
IMPORT
SIG · JSONSCHEMA-SPECIFI
J
jsonschema-specifications
serializationpythonv2025.9.1
Install
2.4s avg
Import
178ms
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2025.9.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.186s · 20.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.4s · import 0.170s · 21MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsonschema_specifications
import jsonschema_specifications
Ensure correct import path to access the package's modules

Demonstrates how to import the package and access a specific schema for validation purposes.

import jsonschema_specifications # Access a specific schema schema = jsonschema_specifications.get_schema('draft-2020-12/schema') # Use the schema for validation # ...
Debug
Known issues
breakingThe `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.
affects: 2025.9.1
deprecatedSupport for Python versions below 3.9 has been deprecated.
fix
Upgrade to Python 3.9 or later to ensure compatibility.
affects: 2025.9.1
breakingThe 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.
affects: 2025.9.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'jsonschema.compat'
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.
ImportError: cannot import name 'validate' from 'jsonschema'
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`.
jsonschema.exceptions.RefResolutionError: Could not resolve schema reference
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.
Upgrade
Version history
2025.9.1latest on PyPI · released Sep 8, 2025
Audit
Dependencies
jsonschemarequiredProvides the core JSON Schema validation functionality
Agent activity
9 hits · last 30 days
node
8
Resources
jsonschema-specifications — pip install jsonschema-specifications · libregistry