Skip to content

yaml: parse against the YAML 1.2 core schema - #9174

Open
sspaink wants to merge 1 commit into
open-policy-agent:mainfrom
sspaink:fix-5754-yaml-1.2-core-schema
Open

yaml: parse against the YAML 1.2 core schema#9174
sspaink wants to merge 1 commit into
open-policy-agent:mainfrom
sspaink:fix-5754-yaml-1.2-core-schema

Conversation

@sspaink

@sspaink sspaink commented Sep 8, 2026

Copy link
Copy Markdown
Member

Replace sigs.k8s.io/yaml, which is pinned to go-yaml v2 and resolves the YAML 1.1 bare words y/n/yes/no/on/off as booleans, with a small internal package over go-yaml v3. This also leaves go-yaml v3 as the module's only YAML library.

Fixes: #5754
Fixes: #6598

Replace sigs.k8s.io/yaml, which is pinned to go-yaml v2 and resolves the
YAML 1.1 bare words y/n/yes/no/on/off as booleans, with a small internal
package over go-yaml v3. This also leaves go-yaml v3 as the module's only
YAML library.

Fixes: open-policy-agent#5754
Fixes: open-policy-agent#6598
Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>
@sspaink
sspaink force-pushed the fix-5754-yaml-1.2-core-schema branch from 19f774b to d6b5f08 Compare September 8, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify yaml dependency to sigs.k8s.io/yaml YAML on/off as keys cannot be queried correctly

1 participant