{"id":13784087,"url":"https://github.com/marksparkza/jschon","last_synced_at":"2025-05-16T04:04:08.820Z","repository":{"id":37404422,"uuid":"257012504","full_name":"marksparkza/jschon","owner":"marksparkza","description":"An object-oriented JSON Schema implementation for Python.","archived":false,"fork":false,"pushed_at":"2025-02-24T09:01:04.000Z","size":695,"stargazers_count":139,"open_issues_count":36,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T05:09:13.460Z","etag":null,"topics":["json","json-patch","json-pointer","json-schema"],"latest_commit_sha":null,"homepage":"https://jschon.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marksparkza.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-19T13:55:46.000Z","updated_at":"2025-04-17T07:51:41.000Z","dependencies_parsed_at":"2023-01-20T21:18:56.933Z","dependency_job_id":"7b8a1ac2-55fe-449f-bcff-beca341f26be","html_url":"https://github.com/marksparkza/jschon","commit_stats":{"total_commits":490,"total_committers":3,"mean_commits":"163.33333333333334","dds":0.04489795918367345,"last_synced_commit":"f0a4e168f24340840e3620574fd7d68b220157e7"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksparkza%2Fjschon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksparkza%2Fjschon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksparkza%2Fjschon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksparkza%2Fjschon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksparkza","download_url":"https://codeload.github.com/marksparkza/jschon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","json-patch","json-pointer","json-schema"],"created_at":"2024-08-03T19:00:35.239Z","updated_at":"2025-05-16T04:04:08.800Z","avatar_url":"https://github.com/marksparkza.png","language":"Python","funding_links":[],"categories":["Who Uses the Test Suite"],"sub_categories":["Python"],"readme":"jschon\n======\n\n|python| |pypi| |docs| |tests| |codecov| |license| |downloads|\n\nAn object-oriented JSON Schema implementation for Python.\n\n----\n\n**Note from the author:**\n\nHi! I'm Mark, and this is my personal Python-powered project.\nWork on jschon is currently on hold due to other commitments.\nDevelopment will resume as and when time allows.\n\n----\n\nFeatures\n--------\n* JSON Schema validator implementation\n  (`drafts 2019-09, 2020-12 \u003chttps://json-schema.org/\u003e`_)\n\n  * Schema compilation and indexing\n  * $ref loading from local and remote sources\n  * Support for custom keywords, vocabularies and meta-schemas\n  * Support for format validation\n\n* JSON class implementing the JSON data model\n* JSON Pointer (`RFC 6901 \u003chttps://tools.ietf.org/html/rfc6901.html\u003e`_)\n* JSON Patch (`RFC 6902 \u003chttps://tools.ietf.org/html/rfc6902.html\u003e`_)\n* Relative JSON Pointer (`draft \u003chttps://datatracker.ietf.org/doc/html/draft-bhutton-relative-json-pointer-00\u003e`_)\n\nInstallation\n------------\n::\n\n    pip install jschon\n\nFor remote $ref support, the requests library is required. It may be installed with::\n\n    pip install jschon[requests]\n\nExample\n-------\nCreate a JSON schema:\n\n.. code-block:: python\n\n    from jschon import create_catalog, JSON, JSONSchema\n\n    create_catalog('2020-12')\n\n    demo_schema = JSONSchema({\n        \"$id\": \"https://example.com/demo\",\n        \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n        \"type\": \"array\",\n        \"items\": {\n            \"anyOf\": [\n                {\n                    \"type\": \"string\",\n                    \"description\": \"Cool! We got a string here!\"\n                },\n                {\n                    \"type\": \"integer\",\n                    \"description\": \"Hey! We got an integer here!\"\n                }\n            ]\n        }\n    })\n\nValidate JSON data:\n\n.. code-block:: python\n\n    result = demo_schema.evaluate(\n        JSON([12, \"Monkeys\"])\n    )\n\nGenerate JSON Schema-conformant output:\n\n\u003e\u003e\u003e result.output('basic')\n{\n    \"valid\": True,\n    \"annotations\": [\n        {\n            \"instanceLocation\": \"\",\n            \"keywordLocation\": \"/items\",\n            \"absoluteKeywordLocation\": \"https://example.com/demo#/items\",\n            \"annotation\": True\n        },\n        {\n            \"instanceLocation\": \"/0\",\n            \"keywordLocation\": \"/items/anyOf/1/description\",\n            \"absoluteKeywordLocation\": \"https://example.com/demo#/items/anyOf/1/description\",\n            \"annotation\": \"Hey! We got an integer here!\"\n        },\n        {\n            \"instanceLocation\": \"/1\",\n            \"keywordLocation\": \"/items/anyOf/0/description\",\n            \"absoluteKeywordLocation\": \"https://example.com/demo#/items/anyOf/0/description\",\n            \"annotation\": \"Cool! We got a string here!\"\n        }\n    ]\n}\n\nLinks\n-----\n* `Documentation \u003chttps://jschon.readthedocs.io\u003e`_\n* `Package info \u003chttps://pypi.org/project/jschon\u003e`_\n* `Source code \u003chttps://github.com/marksparkza/jschon\u003e`_\n\n.. |tests| image:: https://github.com/marksparkza/jschon/actions/workflows/tests.yml/badge.svg\n    :target: https://github.com/marksparkza/jschon/actions/workflows/tests.yml\n    :alt: Test status\n\n.. |codecov| image:: https://codecov.io/gh/marksparkza/jschon/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/marksparkza/jschon\n    :alt: Code coverage\n\n.. |pypi| image:: https://img.shields.io/pypi/v/jschon\n    :target: https://pypi.org/project/jschon\n    :alt: PyPI package version\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/jschon\n    :target: https://www.python.org/downloads/\n    :alt: Supported Python versions\n\n.. |docs| image:: https://readthedocs.org/projects/jschon/badge/?version=latest\n    :target: https://jschon.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation status\n\n.. |license| image:: https://img.shields.io/github/license/marksparkza/jschon\n    :target: https://github.com/marksparkza/jschon/blob/main/LICENSE\n    :alt: MIT license\n\n.. |downloads| image:: https://static.pepy.tech/badge/jschon\n    :target: https://pepy.tech/project/jschon\n    :alt: Total downloads\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksparkza%2Fjschon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksparkza%2Fjschon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksparkza%2Fjschon/lists"}