{"id":15934486,"url":"https://github.com/cdaringe/runtypes-to-jsonschema","last_synced_at":"2025-03-24T21:32:10.826Z","repository":{"id":65210269,"uuid":"587884263","full_name":"cdaringe/runtypes-to-jsonschema","owner":"cdaringe","description":"Converts runtypes schema to jsonschema documents","archived":false,"fork":false,"pushed_at":"2024-08-05T18:33:48.000Z","size":532,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T20:09:42.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdaringe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":null,"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-11T20:15:47.000Z","updated_at":"2024-10-04T05:53:55.000Z","dependencies_parsed_at":"2023-02-19T15:45:24.242Z","dependency_job_id":"297e25bd-fb7f-4128-9d9c-ffcdcf624e47","html_url":"https://github.com/cdaringe/runtypes-to-jsonschema","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fruntypes-to-jsonschema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fruntypes-to-jsonschema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fruntypes-to-jsonschema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fruntypes-to-jsonschema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/runtypes-to-jsonschema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245355496,"owners_count":20601732,"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-10-07T03:03:21.200Z","updated_at":"2025-03-24T21:32:05.806Z","avatar_url":"https://github.com/cdaringe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runtypes-to-jsonschema\n\nconvert [runtypes](https://github.com/pelotom/runtypes) schemas to [jsonschema](https://json-schema.org/understanding-json-schema/reference/).\n\n[![main](https://github.com/cdaringe/runtypes-to-jsonschema/actions/workflows/main.yml/badge.svg)](https://github.com/cdaringe/runtypes-to-jsonschema/actions/workflows/main.yml)\n\n## install\n\n`npm install runtypes-to-jsonschema`\n\n## usage\n\n```ts\nimport { tojsonschema } from \"runtypes-to-jsonschema\";\nimport * as rt from \"runtypes\";\n\nconst myRtSchema = rt.Record({ foo: rt.Literal(\"bar\") });\nconst myjsonschema = tojsonschema(myRtSchema);\n// {\n//   type: \"object\",\n//   properties: { foo: { const: \"bar\" } },\n//   required: [\"foo\"],\n// }\n```\n\nsee [test.ts](./test.ts) for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fruntypes-to-jsonschema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fruntypes-to-jsonschema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fruntypes-to-jsonschema/lists"}