required-mapping-value-colon-separation
Overview
This rule belongs to the yaml-syntax-validation
ruleset and states that:
The key and value of a mapping (key-value pair) must be separated by a colon :
. There must be a space between the colon :
and the value.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | While scanning the mapping value key, could not find expected ':'. |
Code | YAMLSYNTAX_V002 |
Type | Validation |
Rule System | Syntax |
Broad Category | Mapping Values |
Tags | yaml data syntax preliminary checks validation yaml key value pairs maps mapping objects colon |
Suggested Fixes
- If (key,value) pair is expected, ensure that the key is separated from the value with a ':' and a space.
- If (key,value) pair is not expected here, ensure that the content up to this line is valid YAML.