{"id":19195691,"url":"https://github.com/searchfe/json-schema-generator","last_synced_at":"2025-09-03T08:17:07.470Z","repository":{"id":38175012,"uuid":"157648897","full_name":"searchfe/json-schema-generator","owner":"searchfe","description":"JSON schema generator supports draft 07","archived":false,"fork":false,"pushed_at":"2023-01-06T09:32:32.000Z","size":1052,"stargazers_count":8,"open_issues_count":16,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-14T05:49:20.456Z","etag":null,"topics":["draft07","generator","json","schema"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/searchfe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T03:50:00.000Z","updated_at":"2023-10-10T02:35:40.000Z","dependencies_parsed_at":"2023-02-05T19:31:00.762Z","dependency_job_id":null,"html_url":"https://github.com/searchfe/json-schema-generator","commit_stats":null,"previous_names":["harttle/json-schema-generator"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/searchfe/json-schema-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/searchfe%2Fjson-schema-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/searchfe%2Fjson-schema-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/searchfe%2Fjson-schema-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/searchfe%2Fjson-schema-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/searchfe","download_url":"https://codeload.github.com/searchfe/json-schema-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/searchfe%2Fjson-schema-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273411065,"owners_count":25100674,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":["draft07","generator","json","schema"],"created_at":"2024-11-09T12:11:11.667Z","updated_at":"2025-09-03T08:17:07.442Z","avatar_url":"https://github.com/searchfe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Schema Generator\n\n[![Build Status](https://travis-ci.com/harttle/json-schema-generator.svg?branch=master)](https://travis-ci.com/harttle/json-schema-generator)\n[![Coverage Status](https://coveralls.io/repos/github/harttle/json-schema-generator/badge.svg?branch=master)](https://coveralls.io/github/harttle/json-schema-generator?branch=master)\n\nSpec: http://json-schema.org/latest/json-schema-validation.html\n\n## Install\n\n```bash\nnpm install --save jsg07\n```\n\n## Usage\n\n```javascript\nconst jsg = require('jsg07');\n\nlet schema = jsg.infer({\n    name: 'Mike',\n    male: true,\n    tags: ['Gentle', 'Nice']\n});\nconsole.log(JSON.stringify(schema, null, 4));\n```\n\n## Output\n\n```\n{\n    \"title\": \"An object value\",\n    \"required\": [\n        \"name\",\n        \"male\",\n        \"tags\"\n    ],\n    \"properties\": {\n        \"name\": {\n            \"title\": \"A string value\",\n            \"default\": \"\",\n            \"pattern\": \"^(.*)$\",\n            \"examples\": [\n                \"Mike\"\n            ],\n            \"$id\": \"#/properties/name\",\n            \"type\": \"string\"\n        },\n        \"male\": {\n            \"title\": \"A boolean value\",\n            \"default\": false,\n            \"examples\": [\n                true\n            ],\n            \"$id\": \"#/properties/male\",\n            \"type\": \"boolean\"\n        },\n        \"tags\": {\n            \"title\": \"An array of items\",\n            \"items\": {\n                \"title\": \"A string value\",\n                \"default\": \"\",\n                \"pattern\": \"^(.*)$\",\n                \"examples\": [\n                    \"Gentle\"\n                ],\n                \"$id\": \"#/properties/tags/items\",\n                \"type\": \"string\"\n            },\n            \"$id\": \"#/properties/tags\",\n            \"type\": \"array\"\n        }\n    },\n    \"$id\": \"http://example.org/root.json#\",\n    \"type\": \"object\",\n    \"definitions\": {},\n    \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsearchfe%2Fjson-schema-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsearchfe%2Fjson-schema-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsearchfe%2Fjson-schema-generator/lists"}