✨ json-schema-plus ✨
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.
Tip
Take scoop-manifest.*.json in abgox/schema as an example.
-
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
zhinurls. - Then it will load
https://schema.abgox.com/scoop-manifest.zh-CN.json.
- It will match
- 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.
- There is no relevant definition in
- If it is