Skip to content

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

License

Notifications You must be signed in to change notification settings

abgox/json-schema-plus

Repository files navigation

license version code size repo size created download


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.

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project