Closed shaunc closed 4 years ago
I think it's not possible for the library.
Since :
the library load including files by a pyYAML
Constructor, what loaded can be only inside a document.
Till now, the library loads an including YAML
file with yaml.load()
.
Of course we can change it to full_load()
, but still it can not make a "Multi-Docs", it will return an iterable(convert to list?)
Yes ... would seem to need a change in pyyaml so that the Constructor could return document(s), not document fragments. I guess I'll close. Thanks for looking into it.
If I have one document such as (foo.yaml):
and baz.yaml looks like:
I would like this to be interpreted as:
Is there any way to achieve this? Currently, even if I use
load_all()
my current setup fails with error.