Why
YAML 1.2.2 flow style for mappings ({ key: value }) is a common compact notation, but it is currently not parsed, so documents using it fail or parse incorrectly. This is a companion to #7 (flow sequences).
What
ConvertFrom-Yaml should parse flow mappings inline anywhere a node is expected, for example:
person: { name: Alice, age: 30 }
matrix: [{x: 1, y: 2}, {x: 3, y: 4}]
ConvertTo-Yaml does not need to emit flow style by default; block style remains the default output.
Spec examples covered
- Example 2.6 — Mapping of Mappings
- Parts of Example 2.27 (Invoice) once combined with other features
Why
YAML 1.2.2 flow style for mappings (
{ key: value }) is a common compact notation, but it is currently not parsed, so documents using it fail or parse incorrectly. This is a companion to #7 (flow sequences).What
ConvertFrom-Yamlshould parse flow mappings inline anywhere a node is expected, for example:ConvertTo-Yamldoes not need to emit flow style by default; block style remains the default output.Spec examples covered