Given a file with this content:
- test1
- - test2
- test3
the expected output from piping this file's content to ConvertFrom-Yaml would be a list with 'test1' and a nested list with 'test2' and 'test3'. This should be the proper formatting for nested lists in YAML and converting this YAML file in Python, with the PyYAML module, exhibits this behavior.
However, the ConvertFrom-Yaml cmdlet returns a list with 'test1', 'test2', and 'test3'.
Given a file with this content:
the expected output from piping this file's content to ConvertFrom-Yaml would be a list with 'test1' and a nested list with 'test2' and 'test3'. This should be the proper formatting for nested lists in YAML and converting this YAML file in Python, with the PyYAML module, exhibits this behavior.
However, the ConvertFrom-Yaml cmdlet returns a list with 'test1', 'test2', and 'test3'.