Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile scanning the mapping value key, could not find expected ':'.
CodeYAMLSYNTAX_V002
TypeValidation
Rule SystemSyntax
Broad CategoryMapping Values
Tagsyaml 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.

For More Information