YAML 1.1 Parser Turned Country Code `NO` or `ON`/`OFF` Into Boolean `false`/`true`

Legacy YAML 1.1 unquoted scalars interpret `yes`/`no`/`on`/`off` as booleans.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: YAML 1.1 Parser Turned Country Code `NO` or `ON`/`OFF` Into Boolean `false`/`true` Platform: Data
Common Root Causes:
  • Legacy YAML 1.1 unquoted scalars interpret `yes`/`no`/`on`/`off` as booleans.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Quote string codes (`"NO"`, `"3.10"`) and prefer strict YAML 1.2 parsers.
Safe Diagnostic Command:
Inspect parsed type of country/version scalars
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Legacy YAML 1.1 unquoted scalars interpret `yes`/`no`/`on`/`off` as booleans. Recommended diagnostic: `Inspect parsed type of country/version scalars`. Remediation: Quote string codes (`"NO"`, `"3.10"`) and prefer strict YAML 1.2 parsers.

Worked Examples

  • Run `Inspect parsed type of country/version scalars` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-data-yaml-norway-problem-bool · Independently verified: 2026-11-25

Related Resources