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

Follow

Comments

2 comments

  • 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
  • Avatar
    christopher356

    Thanks for making my work a lot easier. your post are appreciated. Enjoyed reading the article above, really explains everything in detail, and the article is very interesting and effective. Thank you and good luck with the upcoming articles. 





    First Progress Credit Crad

    0
    Comment actions Permalink

Please sign in to leave a comment.