Skip to content

Stuey2/vscode-yaml-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode-yaml-validation

Superceeded - A new YAML Language Server Plugin has been published, and seems more promising overall. I defer to vscode-yaml now. (marketplace/GitHub)

Description

This is a work in progress/early release version, of a VSCode extension for YAML validation against a JSON schema.

screen-shot-01.png

screen-shot-02.png

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"
  }
]

Contributions

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:

PetStore schemas were from the following repo:

Useful Info

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.3%
  • JavaScript 0.7%