Skip to content

abgox/json-schema-plus

Repository files navigation

license version code size repo size created


Star ⭐️ or Donate 💰 if you like it!

简体中文 | English | Github | Gitee

logo

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.

  1. Install json-schema-plus.

  2. 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"
           },
         ]
       }
    ]
  3. 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.
  4. To ensure consistent environments, you may also need to set .vscode/extensions.json.

    {
      "recommendations": ["abgox.json-schema-plus"]
    }

About

An extension for vscode that provides multilingual dynamic schema matching for JSON Schema.

Topics

Resources

License

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

Contributors