The Norway Problem in Yaml 0 ▲ Senthil Kumaran 2 hours ago · Tech · hide · 0 comments Norway's ISO country code is NO. Under the YAML 1.1 spec, unquoted no (case-insensitive, along with yes, on, off, y, n, true, false) is treated as a boolean and not a string. You can see the problem here. ~ cat test.yaml countries: - NO - SE - NL - IN - US - SG ~ python >>> import yaml >>> with open("test.yaml") as f: ... data = yaml.safe_load(f) ... >>> print(data) {'countries': [False, 'SE', 'NL', 'IN', 'US', 'SG']} This and other things are fixed Kubernetes Flavored Yaml. Which has minimal syntax like, all flow style syntax with {} for objects and [] for arrays. All string values must be double-quoted. No comments yet. Log in to reply on the Fediverse. Comments will appear here.