📄 YAMLhard
4. Quote to keep it a string (type trap)
YAML infers types, and that bites. Make both of these STRINGS: • version — the string "1.20" (bare 1.20 becomes the number 1.2 — the trailing zero vanishes!) • enabled — the string "true" (bare true becomes a boolean)
How to approach this
YAML auto-converts anything that looks like a number or boolean. `version: 1.20` is parsed as the FLOAT 1.2 — the trailing zero is silently lost, wrecking a version pin. `enabled: true` becomes a real boolean, not the text "true". The fix is to QUOTE any value you need to stay a string: `version: "1.20"`. (Related portability note: older YAML 1.1 tools like Ansible also turn bare yes/no/on/off into booleans — the same lesson: quote it.)
config.yaml