Why
A YAML stream may contain multiple documents separated by --- and optionally terminated by .... The parser currently tolerates these markers but only returns the first document, so multi-document input silently loses data.
What
ConvertFrom-Yaml should return one object per document when the input contains multiple documents, consistent with PowerShell pipeline conventions. ConvertTo-Yaml should be able to emit a multi-document stream from an array via explicit opt-in.
---
time: 20:03:20
player: Sammy Sosa
action: strike
...
---
time: 20:03:47
player: Sammy Sosa
action: grand slam
...
Spec examples covered
- Example 2.7 — Two Documents in a Stream
- Example 2.8 — Play by Play Feed
- Example 2.28 — Log File
Why
A YAML stream may contain multiple documents separated by
---and optionally terminated by.... The parser currently tolerates these markers but only returns the first document, so multi-document input silently loses data.What
ConvertFrom-Yamlshould return one object per document when the input contains multiple documents, consistent with PowerShell pipeline conventions.ConvertTo-Yamlshould be able to emit a multi-document stream from an array via explicit opt-in.Spec examples covered