generated/1016/a duplicate entry appended

sha256 8ea4afce664a5b69ece47f5f36657dd082b59e00adb0415b592837c66dc3c09d

Document

# c1
o: &m3 !<tag:yaml.org,2002:omap>
 # c2
 -
  # c3
  o0: 5
 # c4
 -
  # c5
  o1: -4
 # c6
 -
  # c7
  o2: -9
# c8
again: *m3
# c9
s: !<tag:yaml.org,2002:set>
 # c10
 s0: null
 # c11
 s1: null
# c12
o: >-
 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-verbatim presentation/block-folded presentation/chomp-padded presentation/comment-above presentation/plain value/int value/mapping value/null value/sequence value/string
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml

accept

perlref yamlstar

refuse by the parser

value

libfyaml

{"again":{"o0":5},"o":"dup","s":{"s0":null,"s1":null}}

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

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