# schema **Repository Path**: abgox/schema ## Basic Information - **Project Name**: schema - **Description**: 一些 json schema,提供更好的 json 提示与验证 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: https://schema.abgox.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-16 - **Last Updated**: 2025-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: schema, Linter, validation ## README

schema

English | 简体中文 | Github | Gitee

license code size repo size created

---

喜欢这个项目?请给它 Star ⭐️ 或 赞赏 💰

## 介绍 一些 JSON Schema,提供更好的 json 提示和校验,同时支持多语言。 ## 如何使用 > [!Tip] > > 以 [scoop-manifest.zh-CN.json](./schemas/scoop-manifest.zh-CN.json) 为例 - 在 json 文件中定义 ```json "$schema": "https://schema.abgox.com/scoop-manifest.zh-CN.json", ``` - 在 vscode 的 [settings.json](https://code.visualstudio.com/docs/configure/settings) 中定义 - 安装 [json-schema-plus](https://json-schema-plus.abgox.com) 扩展,它为 JSON Schema 提供了多语言的动态架构匹配 - 配置 `json-schema-plus.schemas` ```json "json-schema-plus.schemas": [ { "fileMatch": ["bucket/**/*.json"], "urls": [ { "language": "zh", "url": "https://schema.abgox.com/scoop-manifest.zh-CN.json" }, ], "url": "https://schema.abgox.com/scoop-manifest.en-US.json" } ] ```
使用内置的 json.schemas 配置 > [settings.json](https://code.visualstudio.com/docs/configure/settings) 中定义的 `json.schemas` 优先级低于扩展提供的 schema,参考 [issue](https://github.com/microsoft/vscode/issues/219855) ```json "json.schemas": [ { "url": "https://schema.abgox.com/scoop-manifest.zh-CN.json", "fileMatch": [ "bucket/**/*.json" ] } ] ```
- JetBrains IDE: `设置` => `语言与框架` => `架构和 DTD` => `JSON 架构映射` ### Schema List > [!Tip] > > 在 [官网](https://schema.abgox.com) 中查看: https://schema.abgox.com/schema-list - [简体中文](./schema-list.zh-CN.md) - [English](./schema-list.md)