{"id":320,"library":"jsonschema-specifications","title":"JSON Schema Specifications","description":"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.","status":"active","version":"2025.9.1","language":"python","source_language":"en","source_url":"https://github.com/python-jsonschema/jsonschema-specifications","tags":["JSON Schema","Python","Schema Registry","Metaschemas","Vocabularies"],"install":[{"cmd":"pip install jsonschema-specifications","lang":"bash","label":"Install jsonschema-specifications"}],"dependencies":[{"reason":"Provides the core JSON Schema validation functionality","package":"jsonschema","optional":false}],"imports":[{"note":"Ensure correct import path to access the package's modules","symbol":"jsonschema_specifications","correct":"import jsonschema_specifications"}],"quickstart":{"code":"import jsonschema_specifications\n\n# Access a specific schema\nschema = jsonschema_specifications.get_schema('draft-2020-12/schema')\n\n# Use the schema for validation\n# ...","lang":"python","description":"Demonstrates how to import the package and access a specific schema for validation purposes."},"warnings":[{"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.","message":"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.","severity":"breaking","affected_versions":"2025.9.1"},{"fix":"Upgrade to Python 3.9 or later to ensure compatibility.","message":"Support for Python versions below 3.9 has been deprecated.","severity":"deprecated","affected_versions":"2025.9.1"},{"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.","message":"The function 'jsonschema_specifications.get_schema' has been removed or renamed.","severity":"breaking","affected_versions":"2025.9.1"}],"env_vars":null,"last_verified":"2026-05-12T13:02:56.706Z","next_check":"2026-06-26T00:00:00.000Z","problems":[{"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.","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.","error":"ModuleNotFoundError: No module named 'jsonschema.compat'"},{"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`.","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.","error":"ImportError: cannot import name 'validate' from 'jsonschema'"},{"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.","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.","error":"jsonschema.exceptions.RefResolutionError: Could not resolve schema reference"}],"ecosystem":"pypi","meta_description":null,"install_score":100,"install_tag":"verified","quickstart_score":0,"quickstart_tag":"stale","pypi_latest":null,"install_checks":{"last_tested":"2026-05-12","tag":"verified","tag_description":"installs cleanly on critical runtimes, fast import, recently tested","results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.17,"mem_mb":5,"disk_size":"20.5M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.11,"mem_mb":5,"disk_size":"21M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.26,"mem_mb":5.1,"disk_size":"22.5M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.2,"mem_mb":5.1,"disk_size":"23M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.19,"mem_mb":5,"disk_size":"14.4M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.2,"mem_mb":5,"disk_size":"15M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.18,"mem_mb":5.3,"disk_size":"13.7M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.18,"mem_mb":5.3,"disk_size":"14M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.16,"mem_mb":4.9,"disk_size":"20.0M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"default","exit_code":0,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":0.14,"mem_mb":4.9,"disk_size":"20M"}]},"quickstart_checks":{"last_tested":"2026-04-23","tag":"stale","tag_description":"widespread failures or data too old to trust","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}}