Hi,
I would like to generate multiple files, one of which needing to be a YAML stream.
Here's my jsonnet file:
$ cat test.jsonnet
{
'foo.json': std.manifestJson({bar: 'a'}),
'some.yaml': std.manifestYamlDoc([{something: ['a', 'b', 'c']}, {second: "object in stream"} , {third: "element"}])
}
I compile it with `jsonnet test.jsonnet -m . -S -y`
Looking at the resulting yaml, I have:
$ cat some.yaml
- "something":
- "a"
- "b"
- "c"
- "second": "object in stream"
- "third": "element"
But I hope to have something like
---
{
"something": [
"a",
"b",
"c"
]
}
---
{
"second": "object in stream"
}
---
{
"third": "element"
}
...
Which is what I get running jsonnet -y on the file
[{something: ['a', 'b', 'c']}, {second: "object in stream"} , {third: "element"}]
Do I miss something obvious here?
Thanks in advance for your help
Raphaël