generated/1860/a duplicate entry appended

sha256 a53448e0e932968a47b97a43b9e6cb33282770ba95f5ee5d3dc8b5d25585aead

Document

---
? base
:
   &m1
   ? b0
   : 2
   ? b1
   : -7
? !!str item
:
   ? &k1 <<
   : *m1
   ? d0
   : -9
? base
: dup

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/alias node/anchor node/tag-shorthand presentation/document-marker presentation/explicit-key presentation/plain presentation/property-line 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 perlref yamlstar

accept

value split

libfyaml

{"base":"dup","item":{"\u003c\u003c":{"b0":2,"b1":-7},"d0":-9}}

yamlstar

{"base":"dup","item":{"b0":2,"b1":-7,"d0":-9}}

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 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 [15:1] mapping key "base" already defined at [2:1]

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