generated/1347/a duplicate entry appended

sha256 e43232a40000dc28cc1465a746e051ef485beaff9e4b6e586de65a91c11c22f3

Document

!foo
# c1
'base':
    &m1
    # c2
    'b0':	0
# c3
'item':
    # c4
    !!merge <<:
        # c5
        -	*m1
        # c6
        -
            # c7
            !!str 'c0':	6
    # c8
    'd0': !!int	8
# c9
'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
featuresencoding/byte-order-mark node/alias node/anchor node/tag-local node/tag-shorthand presentation/block-folded presentation/comment-above presentation/plain presentation/property-line presentation/quoted-single presentation/tab-separation value/int value/mapping value/merge-key value/non-string-key value/sequence value/string
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml

accept

perlref yaml.v3 yamlstar

refuse by the parser

value

libfyaml

{"base":"dup","item":{"\u003c\u003c":[{"b0":0},{"c0":6}],"d0":8}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, explained refuse by the parser n/i n/i bom-before-content: the parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
libfyaml accepted accept not scored n/i
yamlstar rejected, explained refuse by the parser not scored n/i bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document Error: parse: Parser finished before end of input
yaml.v3 rejected, settled refuse by the parser 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: line 12: found character that cannot start any token
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 [20:1] mapping key "base" already defined at [3:1]

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