Skip to content

Yams.dump dumps numerical String values as Number #197

@jaynetics

Description

@jaynetics

this seems to be similar to #174 though i'm not sure it's the same issue.

let dict = ["1.0": "2."]
print(try! Yams.dump(object: dict))

expected output: '1.0': '2.'
actual output: 1.0: 2.

maybe this is an accepted limitation?

if so, i'd love to know if there is a sane way to correctly dump dicts of an unknown structure. i can only think of deep-mapping them to Nodes and setting styles based on the Strings' contents...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions