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.
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"],
"urls": [
{
"language": "zh",
"url": "https://schema.abgox.com/scoop-manifest.zh-CN.json"
},
],
"url": "https://schema.abgox.com/scoop-manifest.en-US.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.
| |