plist-yaml-plist icon indicating copy to clipboard operation
plist-yaml-plist copied to clipboard

Converting .plist file to .yaml does not properly quote numeric values defined as a string

Open apizz opened this issue 3 years ago • 3 comments

Would require https://github.com/grahampugh/plist-yaml-plist/pull/5.

Currently, numeric values aren't quoted when the XML defines the value as a string

Example excerpt:

<key>MinimumVersion</key>
<string>1.0.0</string>

Example result:

MinimumVersion: 1.0.0

I would expect this to be converted to:

MinimumVersion: '1.0.0'

or

MinimumVersion: "1.0.0"

apizz avatar Mar 02 '21 05:03 apizz

@grahampugh I've also seen this and found that the Autopkg recipes will not run unless they're quoted

smithjw avatar Apr 22 '21 05:04 smithjw

Weird, I haven't seen that issue, but please remember that all YAML-based recipes should be minimum version of "2.3" (which should get quoted automatically).

grahampugh avatar Apr 22 '21 08:04 grahampugh

Ahhh, that must be it. The recipes were older versions when converted initially. Then I modified the to min version to 2.3 when I started tweaking things

smithjw avatar Apr 22 '21 11:04 smithjw