Superceeded - A new YAML Language Server Plugin has been published, and seems more promising overall. I defer to vscode-yaml now. (marketplace/GitHub)
This is a work in progress/early release version, of a VSCode extension for YAML validation against a JSON schema.
This extension uses json.schemas definitions that it finds in the standard VSCode settings file.
.vscode/settings.json
"json.schemas": [
{
"fileMatch": [ "**/default.json" ],
"url": "./src/specs/schema/sources/JsonSchema.d4.json"
},
{
"fileMatch": [ "/.babelrc" ],
"url": "http://json.schemastore.org/babelrc
},
{
"fileMatch": [ "**/swagger.yaml", "**/swagger.json" ],
"url": "http://json.schemastore.org/swagger-2.0"
}
]
Contents of the /server/src/yaml folder are from the following repos, with modifications:
They are included here, because I intend to take major liberties and make further strides towards conversion to TypeScript, if this effort proves viable.
Contents of the /server/src/json and /client folder are from the following repos, with modifications:
- https://github.com/Microsoft/vscode/tree/master/extensions/json
- https://github.com/Microsoft/vscode-languageserver-node-example
PetStore schemas were from the following repo: