Skip to main content

valid-flow-mapping

Overview

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

A flow mapping is a series of entries consisting of key-value pairs. A flow mapping is surrounded by curly braces { and } respectively while the key-value pair entries are separated by a comma ,. Key and value of a pair must be separated by a colon : and a space. There must be no other content between the key and the value.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile parsing a flow mapping, did not find expected , or }.
CodeYAMLSEMANTIC_V002
TypeValidation
Rule SystemSemantic
Broad CategoryMapping Values
Tagsyaml data semantic preliminary checks validation yaml flow mapping key value pairs maps mapping objects

Suggested Fixes

  • Ensure the (key,value) pairs specified within curly braces are separated properly with a ,.
  • Ensure the closing curly brace } is not missing.

For More Information