Setting a schemas to your JSON and YAML file quickly.
type F1 key and paste
ext install 74th.json-yaml-schema-selector
open JSON or YAML file
run command "Select JSON/YAML Schema from file match"
select json schemas
use schema
this will set the schema to settings.json
This uses JSON Schema Store.
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"]
}
]
}
MIT
- supporting jsonc as json
- first version
Icon used from freeicons.io