shape/tag/an omap element that is not a mapping

sha256 88fa819f4f58400c2c58c9787bdf2ca9a1abaaea8d2901a2d65966c1b3a7be37

Document

!!omap [{x: 1}, -2]

Corpus

grammarvalid, vouched for up to construct
tag/omap-not-a-sequence-of-pairsopen 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

refuse by the loader

libfyaml perlref yaml.v3 yamlstar

accept

value

libfyaml yaml.v3 yamlstar

[{"x":1},-2]

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept not scored n/i
yamlstar accepted accept not scored n/i
yaml.v3 accepted accept not scored same
go-yaml rejected, as declared refuse by the loader not scored refused tag/omap-not-a-sequence-of-pairs: go-yaml refuses this on purpose [1:8] !!omap names a sequence of one-entry mappings

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