generated/301/a collection key written twice

sha256 c02575e6fe27c618f98f80b0b537d17e381957841b32470b08ed6f00b6ef6c64

Document

%YAML 1.1
---
{<<: &a2 {merged3: 8, [merged3]: dup, [merged3]: dup2}, M: !<tag:yaml.org,2002:null> &a1 Null}	# c1

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/crlf encoding/byte-order-mark node/anchor node/tag-verbatim presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/plain presentation/tab-separation presentation/tag-before-anchor presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/null 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

{"M":null,"[\"merged3\"]":"dup2","merged3":8}

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 null was used where mapping is expected

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