Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

expected a single document in the stream, but found more #287

Closed
hullscotty1986 opened this issue Oct 19, 2022 · 3 comments
Closed

expected a single document in the stream, but found more #287

hullscotty1986 opened this issue Oct 19, 2022 · 3 comments

Comments

@hullscotty1986
Copy link

If you have a yaml file with multiple documents (split by ---) you get the error:
"expected a single document in the stream, but found more"
Can it process each document?

@qetza
Copy link
Owner

qetza commented Nov 22, 2022

Hi @hullscotty1986,
Sorry for the late reply.

When you ask for support of YAML file with multiple document you mean in the variable file parameters?

I'll add support for YAML file with multiple documents in the next release as this is not a big development.

@hullscotty1986
Copy link
Author

hullscotty1986 commented Nov 22, 2022

Hi @qetza

No worries, I know we are all busy!

I mean I tried passing it multiple yamls in one file e.g:

document: this is document 1
---
document: this is document 2

And it throws the above "expected a single document in the stream, but found more"

@qetza
Copy link
Owner

qetza commented Aug 8, 2023

Hi @hullscotty1986,
A new version of the task is released and contains support for multiple documents in YAML files both in variable files and inline variables.

@qetza qetza closed this as completed Aug 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants