# json-schema-plus
**Repository Path**: abgox/json-schema-plus
## Basic Information
- **Project Name**: json-schema-plus
- **Description**: 一个 vscode 扩展插件,它为 JSON Schema 提供了多语言的动态架构匹配
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://json-schema-plus.abgox.com
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2025-11-01
- **Last Updated**: 2026-08-02
## Categories & Tags
**Categories**: Uncategorized
**Tags**: vscode-extension, schema, validation
## README
---
喜欢这个项目?请给它 Star ⭐️ 或 赞赏 💰
[English](./README.md) | [GitHub](https://github.com/abgox/json-schema-plus) | [Gitee](https://gitee.com/abgox/json-schema-plus)
一个适用于 [Visual Studio Code](https://code.visualstudio.com/) 的扩展,它为 JSON Schema 提供了多语言的动态架构匹配
> 同时支持 [VS Code 网页端](https://vscode.dev)
## 新的变化
请查看 [更新日志](./CHANGELOG.zh-CN.md)
## 如何使用它
> [!TIP]
>
> 以 [abgox/schema](https://schema.abgox.com) 中的 `scoop-manifest.*.json` 为例
1. [安装 json-schema-plus](https://marketplace.visualstudio.com/items?itemName=abgox.json-schema-plus)
2. 添加以下配置到 [settings.json](https://code.visualstudio.com/docs/configure/settings) 中
> [!NOTE]
>
> 如果使用本地 schema 文件,参考 [abgox/abyss](https://github.com/abgox/abyss/blob/main/.vscode/settings.json) 或 [abgox/PSCompletions](https://github.com/abgox/PSCompletions/blob/main/.vscode/settings.json) 的相关配置文件
```json
"json-schema-plus.schemas": [
{
"fileMatch": [
"bucket/**/*.json"
],
"url": "https://schema.abgox.com/scoop-manifest.en-US.json",
"urls": [
{
"language": "zh",
"url": "https://schema.abgox.com/scoop-manifest.zh-CN.json"
},
]
}
]
```
3. 它会根据当前的语言环境自动加载对应的 Schema 架构
- 如果为 `zh-CN`
- 它会匹配到 `urls` 中的 `zh`
- 加载 `https://schema.abgox.com/scoop-manifest.zh-CN.json`
- 如果为 `en-US`
- 在 `urls` 中没有相关定义
- 加载 `https://schema.abgox.com/scoop-manifest.en-US.json`
4. 为了确保环境一致,你可能还需要设置 `.vscode/extensions.json`
```json
{
"recommendations": ["abgox.json-schema-plus"]
}
```
## License
[MIT](./LICENSE) © [abgox](https://me.abgox.com)