Skip to content

Support flow mappings #27

Description

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions