Skip to content

Parse quoted values as strings #116

@yonaskolb

Description

@yonaskolb

Is it possible to configure Yams to parse a quoted value (single or double quotes) as a string, instead of trying to convert to an assumed Swift type?

version: "10.10" // want it to parse to "10.10" String instead of 10.1 Float

I know it's possible to use an explicit type tag as a workaround, but it would be nice to be able to just quote a value which I thought is the standard way of specifying strings in yaml.

version: !!str '10.10' // correctly parses as "10.10"

This would fix yonaskolb/XcodeGen#268

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