Skip to main content

valid-block-sequence-item

Overview

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

A block sequence is simply a series of nodes, each denoted by a leading - indicator. The - indicator must be separated from the node by white space.

PropertyValue
EnabledYes
Maximum SeverityBlocking
MessageWhile parsing a block sequence, did not find expected - indicator.
CodeYAMLSEMANTIC_V050
TypeValidation
Rule SystemSemantic
Broad CategoryArrays/Sequences
Tagsyaml data semantic preliminary checks validation yaml block sequence sequence arrays

Suggested Fixes

  • The array/list item must begin with a - followed by a space and then the array/list item value.
  • An array/list item is expected here. Any other entity is not allowed.
  • Make sure that the array item is indented properly and something is not out of order.

For More Information