{"id":18676613,"url":"https://github.com/hitchdev/strictyamljsonschema","last_synced_at":"2025-10-09T20:43:21.497Z","repository":{"id":95872663,"uuid":"153905463","full_name":"hitchdev/strictyamljsonschema","owner":"hitchdev","description":"Translate JSON schemas into StrictYAML schemas.","archived":false,"fork":false,"pushed_at":"2018-10-20T12:55:59.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T09:41:10.857Z","etag":null,"topics":[],"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/hitchdev.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-20T12:54:39.000Z","updated_at":"2024-10-05T00:17:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0aefb2a-4012-4729-bf5b-909985bd025b","html_url":"https://github.com/hitchdev/strictyamljsonschema","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fstrictyamljsonschema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fstrictyamljsonschema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fstrictyamljsonschema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitchdev%2Fstrictyamljsonschema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitchdev","download_url":"https://codeload.github.com/hitchdev/strictyamljsonschema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231539712,"owners_count":18392334,"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":[],"created_at":"2024-11-07T09:29:59.815Z","updated_at":"2025-10-09T20:43:21.427Z","avatar_url":"https://github.com/hitchdev.png","language":"Python","readme":"# StrictYAMLJSONSchema\n\nTranslate JSON schemas in to StrictYAML schema.\n\n\nSimple example:\n\n```json\n{\n    \"type\": \"object\",\n    \"properties\": {\n        \"age\": {\n            \"type\": \"integer\"\n        },\n        \"name\": {\n            \"type\": \"string\"\n        },\n        \"possessions\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"string\"\n            }\n        }\n    },\n    \"required\": [\"age\", \"name\", \"possession\"]\n}\n\n```\n\n\n```yaml\n# All about the character\nname: Ford Prefect\nage: 42\npossessions:\n- Towel\n\n```\n\n\n```python\nfrom strictyamljsonschema import load_schema\nfrom strictyaml import load\nimport json\n\n```\n\n\n\n\n\nParse correctly:\n\n\n```python\nprint(load(yaml_snippet, load_schema(json.loads(json_schema))).data)\n\n```\n\n```yaml\nOrderedDict([('name', 'Ford Prefect'), ('age', 42), ('possessions', ['Towel'])])\n```\n\n\n\n\n\n\n## Install\n\n```sh\n$ pip install strictyamljsonschema\n```","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitchdev%2Fstrictyamljsonschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitchdev%2Fstrictyamljsonschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitchdev%2Fstrictyamljsonschema/lists"}