{"id":15013000,"url":"https://github.com/ntnyq/weapp-json-schema","last_synced_at":"2025-04-12T04:13:00.255Z","repository":{"id":62880692,"uuid":"563231882","full_name":"ntnyq/weapp-json-schema","owner":"ntnyq","description":":atom: Json schema definitions for weapp","archived":false,"fork":false,"pushed_at":"2025-03-04T15:30:38.000Z","size":573,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T04:12:53.948Z","etag":null,"topics":["json-schema","jsonschema","miniprogram","weapp","wechat"],"latest_commit_sha":null,"homepage":"https://weapp-json-schema.ntnyq.com","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/ntnyq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-11-08T07:19:25.000Z","updated_at":"2025-03-04T15:30:40.000Z","dependencies_parsed_at":"2024-09-30T05:01:11.010Z","dependency_job_id":"0c749ae6-e78f-467d-84f3-7424ead889f6","html_url":"https://github.com/ntnyq/weapp-json-schema","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":0.09090909090909094,"last_synced_commit":"96d0de24295bb38826a6b84c88ff9be0cc813be7"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntnyq%2Fweapp-json-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntnyq%2Fweapp-json-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntnyq%2Fweapp-json-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntnyq%2Fweapp-json-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntnyq","download_url":"https://codeload.github.com/ntnyq/weapp-json-schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514205,"owners_count":21116903,"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":["json-schema","jsonschema","miniprogram","weapp","wechat"],"created_at":"2024-09-24T19:43:34.796Z","updated_at":"2025-04-12T04:13:00.248Z","avatar_url":"https://github.com/ntnyq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weapp-json-schema\n\n[![CI](https://github.com/ntnyq/weapp-json-schema/workflows/CI/badge.svg)](https://github.com/ntnyq/weapp-json-schema/actions)\n[![NPM VERSION](https://img.shields.io/npm/v/weapp-json-schema.svg)](https://www.npmjs.com/package/weapp-json-schema)\n[![NPM DOWNLOADS](https://img.shields.io/npm/dy/weapp-json-schema.svg)](https://www.npmjs.com/package/weapp-json-schema)\n[![LICENSE](https://img.shields.io/github/license/ntnyq/weapp-json-schema.svg)](https://github.com/ntnyq/weapp-json-schema/blob/main/LICENSE)\n\n\u003e JSON schema for weapp.\n\n## Usage\n\nYou can config in workspace's `.vscode/settings.json` to use json schemas or config in every specific files.\n\n### 1. Config in workspace `.vscode/settings.json`\n\n```json\n{\n  \"json.schemas\": [\n    {\n      \"fileMatch\": [\"project.config.json\", \"project.private.config.json\"],\n      \"url\": \"https://unpkg.com/weapp-json-schema/project.schema.json\"\n    },\n    {\n      \"fileMatch\": [\"app.json\"],\n      \"url\": \"https://unpkg.com/weapp-json-schema/app.schema.json\"\n    },\n    {\n      \"fileMatch\": [\"**/pages/**/*.json\"],\n      \"url\": \"https://unpkg.com/weapp-json-schema/page.schema.json\"\n    },\n    {\n      \"fileMatch\": [\"sitemap.json\"],\n      \"url\": \"https://unpkg.com/weapp-json-schema/sitemap.schema.json\"\n    },\n    {\n      \"fileMatch\": [\"**/components/**/*.json\"],\n      \"url\": \"https://unpkg.com/weapp-json-schema/component.schema.json\"\n    }\n  ]\n}\n```\n\n### 2. Use json schema in specific file:\n\n#### Project schema\n\nConfig in your `project.config.json` or `project.private.config.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/weapp-json-schema/project.schema.json\"\n}\n```\n\n#### App schema\n\nConfig in your `app.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/weapp-json-schema/app.schema.json\"\n}\n```\n\n#### Page schema\n\nConfig in your `\u003cpage_name\u003e.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/weapp-json-schema/page.schema.json\"\n}\n```\n\n#### Sitemap schema\n\nConfig in your `sitemap.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/weapp-json-schema/sitemap.schema.json\"\n}\n```\n\n#### Component schema\n\nConfig in your `\u003ccomponent_name\u003e.json`:\n\n```json\n{\n  \"$schema\": \"https://unpkg.com/weapp-json-schema/component.schema.json\"\n}\n```\n\n## Schemas\n\n- [project.schema.json](./project.schema.json) Schema for `project.config.json`\n- [app.schema.json](./app.schema.json) Schema for `app.json`\n- [page.schema.json](./page.schema.json) Schema for `\u003cpage_name\u003e.json`\n- [sitemap.schema.json](./sitemap.schema.json) Schema for `sitemap.json`\n- [component.schema.json](./component.schema.json) Schema for `\u003ccomponent_name\u003e.json`\n\n## Refs\n\n- [微信官方文档 - 项目配置文件](https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html)\n- [微信官方文档 - 全局配置](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html)\n- [微信官方文档 - 页面配置](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html)\n- [微信官方文档 - sitemap 配置](https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/sitemap.html)\n- [微信官方文档 - 自定义组件配置](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component)\n\n## Updated At\n\n2025-03-04\n\n## License\n\n[MIT](./LICENSE) License © 2022-PRESENT [ntnyq](https://github.com/ntnyq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntnyq%2Fweapp-json-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntnyq%2Fweapp-json-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntnyq%2Fweapp-json-schema/lists"}