3 ms·
Instead you have YAML you have to debug because all of a sudden you have decided to support Norway as a country and something about Norway's country code and th
by james_s_tayler 7y ago
Instead you have YAML you have to debug because all of a sudden you have decided to support Norway as a country and something about Norway's country code and the way YAML handles Boolean values bites you in the ass.
- unwind 7y agoI was curious enough to Google and found [1]. It turns out YAML supports figuring out the type of a value from the plain value itself. Norway's cc is "NO", which parses as a Bool instead of a string. The solution is to always quote strings. [1] https://medium.com/@lefloh/lessons-learned-about-yaml-and-norway-13ba26df680 https://medium.com/@lefloh/lessons-learned-about-yaml-and-no...