{"id":43244459,"url":"https://github.com/edgeware/jsonschema","last_synced_at":"2026-02-01T12:04:03.382Z","repository":{"id":47140638,"uuid":"66826307","full_name":"edgeware/jsonschema","owner":"edgeware","description":"JSON schema validator for Python","archived":false,"fork":false,"pushed_at":"2021-09-12T08:08:12.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-21T05:23:03.783Z","etag":null,"topics":["json-schema","jsonschema","python"],"latest_commit_sha":null,"homepage":null,"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/edgeware.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-29T08:38:10.000Z","updated_at":"2021-09-12T08:08:15.000Z","dependencies_parsed_at":"2022-09-14T19:52:03.045Z","dependency_job_id":null,"html_url":"https://github.com/edgeware/jsonschema","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/edgeware/jsonschema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeware%2Fjsonschema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeware%2Fjsonschema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeware%2Fjsonschema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeware%2Fjsonschema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeware","download_url":"https://codeload.github.com/edgeware/jsonschema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeware%2Fjsonschema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-schema","jsonschema","python"],"created_at":"2026-02-01T12:03:29.668Z","updated_at":"2026-02-01T12:04:03.375Z","avatar_url":"https://github.com/edgeware.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"INTRO\n\njsonschema is a full featured validator for the JSON Schema specification.\nIt conforms to the JSON Schema Proposal Second Draft which can be found at the\nfollowing url:\n\nhttp://groups.google.com/group/json-schema/web/json-schema-proposal---second-draft\n\nINSTALL\n\njsonschema uses setup tools so it can be installed normally using:\n\npython setup.py install\n\nFurthermore, the test suite can be run by using the following command:\n\npython setup.py test\n\nUSAGE\n\nJSON documents and schema must first be loaded into a python dictionary type\nbefore it can be validated. This can be done with the JSON parser of your choice\nbut I will use simplejson (just because).\n\nParsing a simple JSON document\n\n\u003e\u003e\u003e import jsonschema\n\u003e\u003e\u003e jsonschema.validate(\"simplejson\", {\"type\":\"string\"})\n\nParsing a more complex JSON document.\n\n\u003e\u003e\u003e import simplejson\n\u003e\u003e\u003e import jsonschema\n\u003e\u003e\u003e \n\u003e\u003e\u003e data = simplejson.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\n\u003e\u003e\u003e schema = {\n...   \"type\":\"array\", \n...   \"items\":[\n...     {\"type\":\"string\"},\n...     {\"type\":\"object\",\n...      \"properties\":{\n...        \"bar\":{\n...          \"items\":[\n...            {\"type\":\"string\"},\n...            {\"type\":\"any\"},\n...            {\"type\":\"number\"},\n...            {\"type\":\"integer\"}\n...          ]\n...        }\n...      }\n...    }\n...   ]\n... }\n\u003e\u003e\u003e jsonschema.validate(data,schema)\n\nHandling validation errors\nValueErrors are thrown when validation errors occur.\n\n\u003e\u003e\u003e import jsonschema\n\u003e\u003e\u003e try:\n...     jsonschema.validate(\"simplejson\", {\"type\":\"string\",\"minLength\":15})\n... except ValueError as e:\n...     print(e)\n... \nLength of 'simplejson' must be more than 15.000000\n\nEXTENDING JSONSCHEMA\n\njsonschema provides an API similar to simplejson in that validators can be\noverridden to support special property support or extended functionality. \nSamples of how jsonschema can be extended can be found in the examples\ndirectory.\n\nLIMITATIONS\n\nReferences are currently not supported.\nThe unique property is currently not validated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeware%2Fjsonschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeware%2Fjsonschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeware%2Fjsonschema/lists"}