{"id":19592316,"url":"https://github.com/smikhalevski/doubter-json-schema","last_synced_at":"2026-05-18T19:46:48.869Z","repository":{"id":65470298,"uuid":"588168378","full_name":"smikhalevski/doubter-json-schema","owner":"smikhalevski","description":"🤔 Converts Doubter shapes from and to JSON schemas.","archived":false,"fork":false,"pushed_at":"2024-01-31T12:04:51.000Z","size":337,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T04:43:13.236Z","etag":null,"topics":["doubter","json-schema"],"latest_commit_sha":null,"homepage":"https://smikhalevski.github.io/doubter-json-schema/","language":"TypeScript","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/smikhalevski.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":"2023-01-12T13:44:35.000Z","updated_at":"2024-01-31T11:49:15.000Z","dependencies_parsed_at":"2024-10-25T13:51:29.738Z","dependency_job_id":"58f57a9f-00e4-43bb-852c-fa80e4a9f5b2","html_url":"https://github.com/smikhalevski/doubter-json-schema","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"07be06f0ba876722fbfd54fe14e38e80b4a3417b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smikhalevski%2Fdoubter-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smikhalevski%2Fdoubter-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smikhalevski%2Fdoubter-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smikhalevski%2Fdoubter-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smikhalevski","download_url":"https://codeload.github.com/smikhalevski/doubter-json-schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867427,"owners_count":19870405,"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":["doubter","json-schema"],"created_at":"2024-11-11T08:34:37.069Z","updated_at":"2026-05-18T19:46:43.832Z","avatar_url":"https://github.com/smikhalevski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doubter \u0026times; JSON Schema\n\nConverts [Doubter](https://github.com/smikhalevski/doubter) shapes from and to JSON schemas.\n\n\u003e [!WARNING]\\\n\u003e This project is at the early development stage.\n\n```shell\nnpm install --save-prod @doubter/json-schema\n```\n\nDefine a shape:\n\n```ts\nimport * as d from 'doubter';\nimport { toJSONSchema } from '@doubter/json-schema';\n\nconst shape = d.object({\n  name: d.string(),\n  age: d.number().gt(10).optional()\n});\n// ⮕ Shape\u003c{ name: string, age?: number | undefined }\u003e\n\nconst schema = toJSONSchema(shape);\n```\n\nThe `schema` is a JSON schema object:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"age\": {\n      \"type\": \"number\",\n      \"exclusiveMinimum\": 10\n    }\n  },\n  \"required\": [\"name\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmikhalevski%2Fdoubter-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmikhalevski%2Fdoubter-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmikhalevski%2Fdoubter-json-schema/lists"}