{"id":13431594,"url":"https://github.com/yolopunk/joi2json","last_synced_at":"2026-01-12T02:24:16.459Z","repository":{"id":28530548,"uuid":"116088062","full_name":"yolopunk/joi2json","owner":"yolopunk","description":"Joi ⇄ JSON-Schema Converter","archived":false,"fork":false,"pushed_at":"2024-11-20T10:09:13.000Z","size":329,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T04:22:20.011Z","etag":null,"topics":["joi","json-schema"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/yolopunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2018-01-03T03:42:38.000Z","updated_at":"2023-07-11T02:02:02.000Z","dependencies_parsed_at":"2025-03-16T12:30:54.690Z","dependency_job_id":"a3d90055-0fab-44b6-ab89-b5700a7f1887","html_url":"https://github.com/yolopunk/joi2json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yolopunk/joi2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yolopunk%2Fjoi2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yolopunk%2Fjoi2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yolopunk%2Fjoi2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yolopunk%2Fjoi2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yolopunk","download_url":"https://codeload.github.com/yolopunk/joi2json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yolopunk%2Fjoi2json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["joi","json-schema"],"created_at":"2024-07-31T02:01:04.368Z","updated_at":"2026-01-12T02:24:16.435Z","avatar_url":"https://github.com/yolopunk.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Joi ⇄ JSON-Schema Converter\n\n[![JavaScript Style Guide][style-image]][style-url]\n[![Build Status][travis-image]][travis-url]\n[![npm download][download-image]][download-url]\n\n[style-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[style-url]: https://standardjs.com\n[travis-image]: https://travis-ci.org/yolopunk/joi2json.svg?branch=master\n[travis-url]: https://travis-ci.org/yolopunk/joi2json\n[download-image]: https://img.shields.io/npm/dm/joi2json.svg?style=flat-square\n[download-url]: https://npmjs.org/package/joi2json\n\n[JSON Schema](https://github.com/json-schema-org/json-schema-spec) and [Joi](https://github.com/hapijs/joi) converter\nForked from [joi-to-json-schema](https://github.com/lightsofapollo/joi-to-json-schema) and [enjoi](https://github.com/tlivings/enjoi)\n\n## Install\n```bash\n  $ npm install joi2json --save\n```\n\n## Usage\n```js\n  const parser = require('joi2json')\n\n  const schema = {\n    \"title\": \"Person\",\n    \"type\": \"object\",\n    \"properties\": {\n        \"firstName\": {\n            \"type\": \"string\"\n        },\n        \"lastName\": {\n            \"type\": \"string\"\n        },\n        \"age\": {\n            \"description\": \"Age in years\",\n            \"type\": \"integer\",\n            \"minimum\": 0\n        }\n    },\n    \"required\": [\"firstName\", \"lastName\"]\n  }\n\n  // JSON Schema to Joi\n  const joiObj = parser.enjoi(schema)\n\n  // Joi to JSON Schema\n  const jsonSchema = parser.dejoi(joiObj)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyolopunk%2Fjoi2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyolopunk%2Fjoi2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyolopunk%2Fjoi2json/lists"}