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

Support writing an empty array value #21

Closed
calbach opened this issue Aug 31, 2017 · 0 comments
Closed

Support writing an empty array value #21

calbach opened this issue Aug 31, 2017 · 0 comments
Labels

Comments

@calbach
Copy link

calbach commented Aug 31, 2017

yaml w foo.yaml a []

want: a: []
got: a: '[]'

Perhaps the CLI syntax would need to be different to disambiguate [] vs "[]".

@mikefarah mikefarah added the bug label Sep 3, 2017
kenjones-cisco added a commit to kenjones-cisco/yaml that referenced this issue Sep 23, 2017
When the value is `[]` set the value to empty array instead of `'[]'`.

Resolves: mikefarah#21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants