Star ⭐️ or Donate 💰 if you like it!
简体中文 | English | Github | Gitee
An extension for Visual Studio Code that provides multilingual dynamic schema matching for JSON Schema.
Also supports VS Code for the Web.
What's New
See the Changelog for details.
How to Use
[!Tip]
Take scoop-manifest.*.json in abgox/schema as an example.
Install json-schema-plus.
Add the following configuration to your settings.json file.
[!Note]
Refer to the configurations in abgox/abyss or abgox/PSCompletions to use local schema files.
"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"
},
]
}
]
It will automatically load the corresponding schema architecture according to the current language environment.
- If it is
zh-CN.
- It will match
zh in urls.
- Then it will load
https://schema.abgox.com/scoop-manifest.zh-CN.json.
- If it is
en-US.
- There is no relevant definition in
urls.
- Then it will load
https://schema.abgox.com/scoop-manifest.en-US.json.
To ensure consistent environments, you may also need to set .vscode/extensions.json.
{
"recommendations": ["abgox.json-schema-plus"]
}
| |