4 ms·
Also "on" and "off", and variations. "y|Y|yes|Yes|YES|n|N|no|No|NO |true|True|TRUE|false|False|FALSE |on|On|ON|off|Off|OFF" https://yaml.org/type/bool.html ht
by oftenwrong 8y ago
Also "on" and "off", and variations.
"y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF"
https://yaml.org/type/bool.html https://yaml.org/type/bool.html
- stevelosh 8y ago"NO" being false is particularly fun: - languages: - en # english - is # icelandic - no # norwegian - ja # japanese - fr # french [{"languages": ["en", "is", false, "ja", "fr"]}]
- rmdashrfstar 8y agoThat's so entirely ridiculous...
- yellowapple 8y agoI feel like 99% of YAML's problems (this being the case in point) would be solved by just treating everything as a string and letting the application interpret it whichever way it sees fit.
- slavik81 8y agoThat's basically the idea behind StrictYaml. Unless you provide a schema, all fields are parsed as string, list or OrderedDict.