valid-flow-sequence
Overview
This rule belongs to the yaml-semantic-validation
ruleset and states that:
A flow sequence is simply a series of nodes, each denoted by a leading -
indicator. The flow sequence is surrounded by square braces [
and ]
respectively while the node entries inside it must be separated by a comma ,
. The -
indicator must be separated from the node entry value by a white-space.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | While parsing a flow sequence, did not find expected , or ] . |
Code | YAMLSEMANTIC_V051 |
Type | Validation |
Rule System | Semantic |
Broad Category | Arrays/Sequences |
Tags | yaml data semantic preliminary checks validation yaml flow sequence sequence arrays |
Suggested Fixes
- Ensure the array/list items are separated properly with a
,
. - Ensure the closing square bracket
]
is not missing.