Skip to content

74th/vscode-json-yaml-schema-selector

Repository files navigation

JSON & YAML Schema elector

VS Code Marketplace Page

Setting a schemas to your JSON and YAML file quickly.

Install

type F1 key and paste

ext install 74th.json-yaml-schema-selector

How to use

open JSON or YAML file

open JSON or YAML file

run command "Select JSON/YAML Schema from file match"

"Select JSON/YAML Schema from file match"

select json schemas

select json schemas

use schema

use schema

this will set the schema to settings.json

settings.json

using schemas

This uses JSON Schema Store.

how to add schemas

Please add your settings.

{
  "json-yaml-schema-selector.additionalSchemas": [
    // url
    "https://raw.githubusercontent.com/docker/compose/master/compose/config/config_schema_v3.8.json",
    // object
    {
      "name": "docker-compose",
      "description": "docker-compose 3.8",
      "url": "https://raw.githubusercontent.com/docker/compose/master/compose/config/config_schema_v3.8.json",
      "fileMatch": ["docker-compose.yaml"]
    }
  ]
}

License

MIT

Change Log

1.1.0

  • supporting jsonc as json

1.0.0

  • first version

thanks

Icon used from freeicons.io

About

Selecting JSON/YAML schema easier (VS Code Extension)

Resources

Stars

Watchers

Forks

Packages

No packages published