Skip to content

Please supported mixed mode values #73

Description

@xnox

If one specifies that something should be a string, please encode it in the most natural and deterministic way.

Example for something desired to be formatted as a list of strings please ensure that all form of canonical integer and floating point numbers are encoded as strings.

https://yaml.org/spec/1.2.2/#24-tags

Lists

canonical: 12345
decimal: +12345
octal: 0o14
hexadecimal: 0xC
canonical: 1.23015e+3
exponential: 12.3015e+02
fixed: 1230.15
negative infinity: -.inf
not a number: .nan

As valid representations of numbers, which upon parsing will not be strings. And thus need to be quoted to be strings.

For the purpose of melange, we can encounter something like "1.23015e+3" as a string value represetting package version or text git tag. But most commonly it is software with single major or single minor version only that can get miss-parsed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions