Schema Validation & IDE Setup
UDS CLI ships with JSON schemas for its configuration files. Setting up schema validation in your IDE enables autocompletion and inline validation.
Recommended Method (All IDEs)
Section titled “Recommended Method (All IDEs)”Add a yaml-language-server header comment to your file:
uds-bundle.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/main/uds.schema.jsonzarf.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/main/zarf.schema.jsontasks.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/main/tasks.schema.jsonThis works with both VS Code and GoLand (JetBrains IDEs).
VS Code
Section titled “VS Code”Install the YAML Extension and add the following to your settings.json (pin main to your UDS CLI version if desired):
"yaml.schemas": { "https://raw.githubusercontent.com/defenseunicorns/uds-cli/main/uds.schema.json": "uds-bundle.yaml"}GoLand (JetBrains IDEs)
Section titled “GoLand (JetBrains IDEs)”To apply the schema globally without modifying individual files, open Settings → Languages & Frameworks → Schemas and DTDs → JSON Schema Mappings and add a new entry using the schema URL and a file path pattern.