32 chars · 1 line
Waiting for input
32 chars · 1 line
Waiting for input
YAML flow sequence troubleshooting
The sample contains two inline mappings inside square brackets but no comma between them. In flow style, the closing brace of one item must be followed by a separator before the next list item begins. This tool is free to use. No account or payment is required.
Last updated
Block sequences use dash markers and indentation, while flow sequences resemble JSON arrays. Inside [ ], commas make item boundaries explicit; whitespace between adjacent collections is not a substitute for a separator.
A compact flow sequence is useful for short values, but nested mappings quickly become difficult to review. Rewriting a complex list with dash markers can make later edits less likely to lose commas or braces.
A comma separates the two inline mapping items.
items: [{name: api} {name: web}]items: [{name: api}, {name: web}]Common questions
No. Block sequences use dash markers without commas. Flow sequences inside square brackets use comma separators between items.
Yes when the consuming YAML semantics permit the same sequence value. Block style is often easier to maintain for nested items.
Flow collection syntax uses punctuation for item boundaries, so a comma is required between adjacent collection values.
Debugging a specific YAML issue? Browse YAML troubleshooting.