shape/tag/a null tag over a scalar that is not null

sha256 1dd24ab7dae91ef606267484bbda42458e7992004384f1ff947e442302328e48

Document

k: !!null 5

Corpus

grammarvalid, vouched for up to construct
tag/null-not-nullopen 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":null}

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/null-not-null: yaml.v3 refuses this on purpose yaml.v3: yaml: cannot decode !!int `5` as a !!null
go-yaml rejected, as declared refuse by the loader not scored refused tag/null-not-null: go-yaml refuses this on purpose [1:11] cannot read "5" as !!null

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