Yams icon indicating copy to clipboard operation
Yams copied to clipboard

Empty strings are encoded as empty objects.

Open mattpolzin opened this issue 4 years ago • 1 comments

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: ''

mattpolzin avatar May 12 '20 15:05 mattpolzin

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

tjprescott avatar Jul 20 '20 02:07 tjprescott