generated/1882/a collection key written twice

sha256 c8d398bba9dca3d82155fff4663b8c11b5dfc42a2d24c927571ecf2e90391719

Document

%TAG !e! tag:yaml.org,2002:
---
<<: !e!seq [{'merged0': 04, ['merged0']: 'dup', ['merged0']: 'dup2'}, 'merged3': 02]
'': &a1 !e!null null

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
key/duplicatereject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node
featuresbreak/cr encoding/byte-order-mark node/anchor node/tag-handle presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/plain presentation/quoted-single presentation/tag-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence value/string
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

{"":null,"[\"merged0\"]":"dup2","merged0":4,"merged3":2}

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 TypeError: unhashable type: 'sequence'
yamlstar accepted accept not scored n/i
yaml.v3 rejected, settled refuse by the loader not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node yaml.v3: yaml: unmarshal errors:
go-yaml rejected, settled refuse by the loader not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node a mapping entry holds one value, and this document reads as two

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