generated/777/a collection key written twice

sha256 c96d4a17f4cce2db26e04820a2a708a5f007fca3289883269f349c7935498701

Document

%YAML 1.1
---
!<tag:yaml.org,2002:map>
"base":
   &m1
   "b0": 0
   "b1": 8
"item":
   <<: *m1
   "d0": 3
   "b0": 99
?
   - >3-
      base
: >3-
   dup
?
   - >3-
      base
: >3-
   dup2

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/alias node/anchor node/tag-verbatim presentation/block-folded presentation/block-indicator presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/plain presentation/property-line presentation/quoted-double presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key 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

{"[\"base\"]":"dup2","base":{"b0":0,"b1":8},"item":{"b0":99,"b1":8,"d0":3}}

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 [13:4] a sequence cannot be a JSON key

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