Edit online

Validating YAML Documents

Automatic Validation

Oxygen XML Editor includes built-in validation engine for YAML documents to help you keep them well-formed. YAML documents are validated automatically as you type and the validation engine detects syntax errors (such as improper indentation or duplicate keys), based upon the YAML specification. The built-in validation also works on files that consist of multiple YAML documents.

Manual Validation Actions

To manually validate the currently edited YAML document, use one of the following actions:

Validate (Ctrl + Shift + V (Command + Shift + V on OS X))
Available from the Validation drop-down menu on the toolbar, the Document > Validate menu, or from the Validate submenu when invoking the contextual menu in the Project view. This action validates the document based upon the YAML specification.
Check Well-Formedness (Ctrl + Shift + W (Command + Shift + W on OS X))

Available from the Validation drop-down menu on the toolbar, the Document > Validate menu, or from the Validate submenu when invoking the contextual menu in the Project view. This action checks the document for syntax errors to make sure it is well-formed.

Batch Validation

The built-in validation engine can also be used to batch validation multiple YAML files at once. This can be done by selecting multiple files in the Project view, right-click, and select Validate > Check Well-Formedness or Validate > Validate. This will automatically validate the selected files using the built-in YAML validation engine, based upon the YAML specification.