I just found out that a null value is added to the array when I parse a stream of YAML documents that starts with a comment.
YAML
# Test
---
foo: bar
---
baz: cuux
Jsonnet
std.parseYaml(importstr 'test.yaml')
Result
[
null,
{
"foo": "bar"
},
{
"baz": "cuux"
}
]
Expected Result
[
{
"foo": "bar"
},
{
"baz": "cuux"
}
]
Current Workaround
std.prune(std.parseYaml(importstr 'test.yaml'))
I just found out that a null value is added to the array when I parse a stream of YAML documents that starts with a comment.
YAML
Jsonnet
Result
Expected Result
[ { "foo": "bar" }, { "baz": "cuux" } ]Current Workaround