Skip to main content

compatible-yaml-document

Overview

This rule belongs to the yaml-semantic-validation ruleset and states that:

A YAML document compatibility is mostly verified through the YAML version number specified in the %YAML directive. The %YAML directive and the version number specified in this directive must be valid.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageIncompatible YAML document found.
CodeYAMLSEMANTIC_V100
TypeValidation
Rule SystemSemantic
Broad CategoryDirectives
Tagsyaml data semantic preliminary checks validation yaml compatibility directive

Suggested Fixes

  • Ensure you haven't specified an invalid version number for the %YAML directive.
  • Try adding %YAML 1.1 as the first line of the directive and remove all other %YAML directives.

For More Information