Skip to content

YAMS decodes empty string as nil #47

@tjprescott

Description

@tjprescott

jpsim/Yams#253

When YAMS encounters an empty string when decoding a YAML string to Swift objects, it decodes it as nil rather than as an empty string. This results in discrepancies between the original file and the round-tripped file.

As a workaround, replace all empty strings in the code model file with a space '' -> ' '

Metadata

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions