Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 2.16 KB

ide-setup.md

File metadata and controls

44 lines (25 loc) · 2.16 KB

IDE Set-Up

Validating Argo YAML againt the JSON Schema

Argo provides a JSON Schema that enables validation of YAML resources in your IDE.

IntelliJ IDEA (Community & Utimate Editions)

YAML validation is supported natively in IDEA.

Configure your IDE to reference the Argo schema and map it to your Argo YAML files:

IDEA Configure Schema

That's it. Open an Argo YAML file and you should see smarter behaviour, including type errors and context-sensitive autocomplete.

IDEA Example Functionality

VSCode

The Red Hat YAML plugin will provide error highlighting and autocompletion for Argo resources.

Install the Red Hat YAML plugin in VSCode and open extension settings:

VSCode Install Plugin

Open the YAML schemas settings:

VSCode YAML Schema Settings

Add the Argo schema setting yaml.schemas:

VSCode Specify Argo Schema

That's it. Open an Argo YAML file and you should see smarter behaviour, including type errors and context-sensitive autocomplete.

VScode Example Functionality