Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

abgox/schema

Repository files navigation

schema

简体中文 | English | Github | Gitee

license code size repo size created


Star ⭐️ or Donate 💰 if you like it!

Introduce

Some JSON Schema with better json prompts, validation, and multilingual support.

How to use

Tip

Take scoop-manifest.en-US.json as an example.

  • Define in the json file.

    "$schema": "https://schema.abgox.com/scoop-manifest.en-US.json",
  • Define in the settings.json of vscode.

    • Install the json-schema-plus extension, it provides multilingual dynamic schema matching for JSON Schema.

    • Configure json-schema-plus.schemas.

      "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"
            },
          ]
        }
      ]
      Use the built-in 'json.schemas' configuration

      The json.schemas defined in settings.json has lower priority than the schema provided by the extension, please refer to the issue.

      "json.schemas": [
        {
          "fileMatch": [
            "bucket/**/*.json"
          ],
          "url": "https://schema.abgox.com/scoop-manifest.en-US.json"
        }
      ]
  • JetBrains IDE: Settings => Languages & Frameworks => Schemas and DTDS=>JSON Schema Mappings

Schema List

Tip

Check on the official website: https://schema.abgox.com/schema-list

About

Some json schemas with better json prompts and validation.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •