generated/1322/a key repeated

sha256 929136b77a008f2b2701734aafb51b46e1a352bfb87e160aaa562e8509fd5174

Document

---
? 'base'
:
      &m4
      ? 'o9'
      : -2
? 'base'
:
      !<tag:yaml.org,2002:omap> &m3
      -
            ? <<
            : *m4
      -
            ? 'o0'
            : -1
      -
            ? 'o1'
            : 1
      -
            ? 'o8'
            : *m4
? 'again'
: *m3

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-verbatim presentation/document-marker presentation/explicit-key presentation/plain presentation/property-line presentation/quoted-single presentation/tag-before-anchor value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml perlref yamlstar

accept

value split

libfyaml

{"again":{"\u003c\u003c":{"o9":-2}},"base":[{"\u003c\u003c":{"o9":-2}},{"o0":-1},{"o1":1},{"o8":{"o9":-2}}]}

yamlstar

{"again":[{"o9":-2},{"o0":-1},{"o1":1},{"o8":{"o9":-2}}],"base":[{"o9":-2},{"o0":-1},{"o1":1},{"o8":{"o9":-2}}]}

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

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