generated/1548/a collection key written twice

sha256 0390c9653020cb521d2d9419462731663499b3bc1eff0ca565b70e0fa0fdee72

Document

---
&a4 {<<: {"merged0": 7, ["merged0"]: "dup", ["merged0"]: "dup2"}, "`a": {!<tag:yaml.org,2002:merge> <<: {"merged3": -7}, "R m": &a2 [&a1 ""], !<tag:yaml.org,2002:str> "h": &a3 false, {"-a": 91}: .inf}} # 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
featuresencoding/byte-order-mark node/anchor node/tag-verbatim presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/plain presentation/quoted-double value/bool value/float value/float-special value/int value/mapping value/merge-key value/non-string-key value/sequence value/string
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3 yamlstar

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref

accept

value

No source answered.

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 rejected, explained refuse by the loader not scored n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary" Error: Unknown tag: tag:yaml.org,2002:merge
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: invalid map key: map[string]interface {}{"-a":91}
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 [2:25] a sequence cannot be a JSON key

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