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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | While parsing a flow mapping, did not find expected , or } . |
Code | YAMLSEMANTIC_V002 |
Type | Validation |
Rule System | Semantic |
Broad Category | Mapping Values |
Tags | yaml 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.