Skip to content

Negative numbers not quoted correctly wrt ALWAYS_QUOTE_NUMBERS_AS_STRINGS #182

@dpbevin

Description

@dpbevin

When initializing a YamlFactory as follows, negative numbers are not quoted correctly.

YAMLFactory factory = new YAMLFactory();
factory.enable(YAMLGenerator.Feature.MINIMIZE_QUOTES);
factory.enable(YAMLGenerator.Feature.ALWAYS_QUOTE_NUMBERS_AS_STRINGS);

Serializing 60 currently results in "60".
Serializing -14 currently results in 14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions