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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Blocking |
| Message | While parsing a block sequence, did not find expected - indicator. |
| Code | YAMLSEMANTIC_V050 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Arrays/Sequences |
| Tags | yaml 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.