Why do my yes/no keys in my YML file change to boolean true/false?

Follow

Comments

1 comment

  • Avatar
    Enrique Studer (Edited )

    This is because YAML 1.1 and earlier used a broader definition of booleans, accepting words like "yes", "no", "on", and "off" in addition to "true" and "false".

    Starting with YAML 1.2, the specification became stricter and only accepts "true" and "false" as valid booleans. As a result, when you try to parse a YML file with "yes" or "no" keys using a YAML parser that complies with the YAML 1.2 specification, these keys will be converted to "true" or "false" accordingly.

    You can create extremely dramatic matches in basket random. Funny sports games are both entertaining and bring humor to everyone.

    0
    Comment actions Permalink

Please sign in to leave a comment.