4 ms·
YAML 1.2 removed most of the nonsense booleans and only recognizes true | True | TRUE | false | False | FALSE. https://yaml.org/spec/1.2/spec.html#id2805071 ht
by anderskaseorg 6y ago
YAML 1.2 removed most of the nonsense booleans and only recognizes true | True | TRUE | false | False | FALSE.
https://yaml.org/spec/1.2/spec.html#id2805071 https://yaml.org/spec/1.2/spec.html#id2805071
Of course, even though YAML 1.2 is a decade old, there are still many parsers that accept YAML 1.1.
- kortex 6y agoHuh, I had no idea, thanks for the heads up!
- hannibalhorn 6y agoThat seems like a pretty sensible approach - eliminates the "Norway problem" altogether. I'd guess you have to use the "%YAML 1.2" directive in all documents in order to get it though...
- anderskaseorg 6y agoYou don’t need this directive to get YAML 1.2 parsers to parse your document as YAML 1.2; that’s the default. You only need it to instruct YAML 1.1 parsers to raise a warning (and I guess for parsers of future version of YAML to fall back to 1.2 behavior, if that ever happens). https://yaml.org/spec/1.2/spec.html#id2781553 https://yaml.org/spec/1.2/spec.html#id2781553 https://yaml.org/spec/1.1/#id895631 https://yaml.org/spec/1.1/#id895631