Open a build.yaml
file and click on "No JSON schema" in the bottom toolbar (at the right).
Click on "New schema mapping" and fill in the options:
- Name:
build.yaml
, or what you prefer - Schema file or URL:
https://simonbinder.eu/schema.json
- Schema version:
JSON schema version 7
- The file pattern should be
build.yaml
and optionally*.build.yaml
You need to install the redhat.vscode-yaml
extension.
Then, add this to your settings:
"yaml.schemas": {
"https://simonbinder.eu/schema.json": [
"build.yaml"
]
},