{"id":24927010,"url":"https://github.com/divedylan/node-schema","last_synced_at":"2025-06-11T08:08:27.416Z","repository":{"id":106197120,"uuid":"281078809","full_name":"diveDylan/node-schema","owner":"diveDylan","description":"a simple node schema","archived":false,"fork":false,"pushed_at":"2020-07-22T15:14:24.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:33:12.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/diveDylan.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":"2020-07-20T09:54:02.000Z","updated_at":"2020-07-22T15:14:27.000Z","dependencies_parsed_at":"2023-05-30T11:45:27.472Z","dependency_job_id":null,"html_url":"https://github.com/diveDylan/node-schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fnode-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fnode-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fnode-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fnode-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diveDylan","download_url":"https://codeload.github.com/diveDylan/node-schema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fnode-schema/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259227952,"owners_count":22824903,"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":"2025-02-02T12:54:10.697Z","updated_at":"2025-06-11T08:08:27.384Z","avatar_url":"https://github.com/diveDylan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Document\na node schema tool\n\n### Usage\n```bash\ncd json \nmkdir \u003cyour_json_file\u003e\ncd root\nnode app\n```\n\n### JSON\n```json\n{\n  \"title\": \"schema的title\",\n  \"description\": \"schema description\",\n  \"json\": {\n  }\n}\n```\n\n### Schema\n\n```json\n{\n    \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n    \"title\": \"响应格式\",\n    \"description\": \"响应格式规范\",\n    \"type\": \"object\",\n    \"properties\": {\n       \"code\": {\n           \"type\": \"string\"\n           \"description\": \"响应状态码的枚举，具体见后端定义的enum response code\"\n        },\n        \"message\": {\n            \"type\":  \"string\",\n            \"description\": \"响应的信息，一般是针对整个响应的概况，成功，错误信息等\"\n        },\n        \"data\": {\n            \"type\": \"object | array\",\n            \"description\": \"响应的具体内容\"\n         }\n    },\n    \"required\": [\n        \"code\",\n        \"message\",\n        \"data\"\n    ]\n}\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivedylan%2Fnode-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivedylan%2Fnode-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivedylan%2Fnode-schema/lists"}