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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | Incompatible YAML document found. |
Code | YAMLSEMANTIC_V100 |
Type | Validation |
Rule System | Semantic |
Broad Category | Directives |
Tags | yaml 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.