{"id":19318467,"url":"https://github.com/manycoding/perfect-jsonschema","last_synced_at":"2026-01-02T17:33:05.012Z","repository":{"id":57451878,"uuid":"168383278","full_name":"manycoding/perfect-jsonschema","owner":"manycoding","description":"Strictly checks that a json schema is valid","archived":false,"fork":false,"pushed_at":"2024-09-02T14:31:14.000Z","size":47,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T06:51:09.519Z","etag":null,"topics":["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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manycoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2019-01-30T17:17:47.000Z","updated_at":"2019-04-22T15:57:42.000Z","dependencies_parsed_at":"2024-11-10T01:19:42.394Z","dependency_job_id":"072a0952-87d1-4dd1-8c95-151a03ab5a63","html_url":"https://github.com/manycoding/perfect-jsonschema","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"068b135a2a9aa21ebc4f40c7b9729899c2656097"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manycoding%2Fperfect-jsonschema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manycoding%2Fperfect-jsonschema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manycoding%2Fperfect-jsonschema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manycoding%2Fperfect-jsonschema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manycoding","download_url":"https://codeload.github.com/manycoding/perfect-jsonschema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250287468,"owners_count":21405617,"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":["jsonschema","python"],"created_at":"2024-11-10T01:18:41.993Z","updated_at":"2026-01-02T17:33:04.941Z","avatar_url":"https://github.com/manycoding.png","language":"Python","readme":"# perfect-jsonschema\n[![Build Status](https://travis-ci.org/manycoding/perfect-jsonschema.svg?branch=master)](https://travis-ci.org/manycoding/perfect-jsonschema)\n[![codecov](https://codecov.io/gh/manycoding/perfect-jsonschema/branch/master/graph/badge.svg)](https://codecov.io/gh/manycoding/perfect-jsonschema)\n---\n_Because soft validation is not enough_\n\n# Why\n[JSON schema standard](https://json-schema.org/) and its implementations stand that if you have something unfamiliar in your schema, it's not an error. In particular, you won't get an error if you made a typo or used something you thought as working. For example, this one is perfectly fine and valid:\n\n    {\n        \"required\": [\"company\"],\n        \"type\": \"object\",\n        \"propertie\": {\"company\": {\"pattern\": \"^(Apple)$\"}, \"format\": \"url\"},\n    }\n    \nBut we want to catch those `propertie` typos and invalid `url` [formats](https://python-jsonschema.readthedocs.io/en/latest/validate/#validating-formats).\n\nThe library rely on [jsonschema](https://github.com/Julian/jsonschema) and supports additional keywords to ignore.\n\n# Features\n\nDerives the draft from the schema and yields a `jsonschema.SchemaError` if:\n* A schema is empty\n* A schema contains a keyword which is not a part of a jsonschema implementation or `extended_keywords` set\n* A schema contains an invalid format value\n* A schema fails with `jsonschema.check_schema()`\n\n# Usage\n\n    from perfect-jsonschema import check\n\n    try:\n        check(schema, extended_keywords={\"tag\"})\n    except Exception as e:\n        do_something()\n\nAn exception example:\n\n    Traceback (most recent call last):\n        f\"Schema contains invalid keywords for \"\n    jsonschema.exceptions.SchemaError: Schema contains invalid keywords for http://json-schema.org/draft-07/schema#:\n    {'propertie', 'company'}\n\n# Local development\n\n    pipenv install --dev\n    pipenv shell\n    tox\n\n# Contribution\n  \n  Any contribution is welcome\n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanycoding%2Fperfect-jsonschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanycoding%2Fperfect-jsonschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanycoding%2Fperfect-jsonschema/lists"}