Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile parsing a flow sequence, did not find expected , or ].
CodeYAMLSEMANTIC_V051
TypeValidation
Rule SystemSemantic
Broad CategoryArrays/Sequences
Tagsyaml 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.

For More Information