Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Array Values #32

Closed
timbmg opened this issue Feb 28, 2022 · 1 comment · Fixed by #55
Closed

Load Array Values #32

timbmg opened this issue Feb 28, 2022 · 1 comment · Fixed by #55

Comments

@timbmg
Copy link
Contributor

timbmg commented Feb 28, 2022

I have a yaml file similar to this:

foo:
  - bar: "hello"
  - bar: "world"

I would like to read the bar values such that my output is something like: ["hello", "world"]

@joshuanapoli
Copy link
Member

Ok, that's an interesting suggestion, since it implies restructuring the input. Probably a JMESPath would be a standard way to write the query that you're looking for. I'll see about replacing lodash get with a JMESPath query.

joshuanapoli added a commit that referenced this issue Dec 15, 2022
joshuanapoli added a commit that referenced this issue Dec 15, 2022
joshuanapoli added a commit that referenced this issue Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants