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

Empty strings are encoded as empty objects. #253

Open
mattpolzin opened this issue May 12, 2020 · 1 comment
Open

Empty strings are encoded as empty objects. #253

mattpolzin opened this issue May 12, 2020 · 1 comment

Comments

@mattpolzin
Copy link
Contributor

When encoding an empty string, Yams should add empty single quotes to indicate an empty string. It currently just prints the empty string which in the resulting YAML is actually the encoding of an empty JSON object.

Current behavior:

string_thing: 

Desired behavior:

string_thing: ''
@tjprescott
Copy link

I just encountered this as well. Our current workaround it to replace all empty strings in our YAML file with a single space.

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

No branches or pull requests

2 participants