shape/tag/a bool tag over text that is not a boolean

sha256 e100a5c60a5d19b2c909b868db2480ae9bf206e67a40782edee3387acafd21ab

Document

k: !!bool 7

Corpus

grammarvalid, vouched for up to construct
tag/bool-not-a-booleanopen from construct on: each parser's stance decides
tag/secondaryaccept from compose on, 6.8.2.2: the secondary handle is declared by default as tag:yaml.org,2002:
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

accept

value

yamlstar

{"k":false}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted refuse by the loader not scored n/i ValueError: Failed to parse YAML/JSON
yamlstar accepted accept not scored n/i
yaml.v3 rejected, as declared refuse by the loader not scored refused tag/bool-not-a-boolean: yaml.v3 refuses this on purpose yaml.v3: yaml: cannot decode !!int `7` as a !!bool
go-yaml rejected, as declared refuse by the loader not scored refused tag/bool-not-a-boolean: go-yaml refuses this on purpose [1:11] cannot read "7" as !!bool

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.