Editor support¶
Install the YAML extension
(redhat.vscode-yaml) for inline schema validation, hover docs, and autocomplete
while hand-authoring YAML. .vscode/settings.json maps each JSON Schema under
data/schemas/ to the files it validates:
File(s) |
Schema |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These are the same schemas soju validate-schemas runs at commit/CI time (see
Validate data) — the editor just surfaces the same errors earlier, inline.
yaml.format.enable is set to false in the workspace so the extension does not
reformat hand-authored YAML (grammar patterns, manifests) on save; canonical vocabulary
files are written exclusively by soju import anyway (see Import vocabulary), so they are
never hand-formatted.