We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the this yaml file foo.yaml with the following content:
foo.yaml
a: aa: "foo" ab: {} ac: 123 ad: []
When I'm trying to convert it to props it seems that yq ignores empty objects/lists.
props
yq
Example:
yq -o=props foo.yaml a.aa = foo a.ac = 123
expected results:
yq -o=props foo.yaml a.aa = foo a.ab = "" a.ac = 123 a.ad = ""
Is it something acceptable and achievable?
version: v4.40.2
v4.40.2
The text was updated successfully, but these errors were encountered:
Sure, take a look here: https://mikefarah.gitbook.io/yq/usage/properties#encode-properties-include-empty-maps-and-arrays
Sorry, something went wrong.
No branches or pull requests
I have the this yaml file
foo.yaml
with the following content:When I'm trying to convert it to
props
it seems thatyq
ignores empty objects/lists.Example:
expected results:
Is it something acceptable and achievable?
version:
v4.40.2
The text was updated successfully, but these errors were encountered: