generated/432/a collection key written twice

sha256 6dc65770704a402aa663fef59221a26cedc691f2ff6e34b37206a979511e519c

Document

%TAG !e! tag:yaml.org,2002:
---
# c1
"base": &m4
     # c2
     "o9": -5
# c3
!e!str "o": !e!omap &m3
     # c4
     -
          # c5
          <<:
               # c6
               "o9": 7
     # c7
     -
          # c8
          "o0": 0
     # c9
     -
          # c10
          "o8": *m4
# c11
"again": *m3
# c12
?
     # c13
     - |5-
          base


: |5-
     dup


# c14
?
     # c15
     - |5-
          base


: |5-
     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
featuresbreak/crlf encoding/byte-order-mark node/alias node/anchor node/tag-handle presentation/block-indicator presentation/block-literal presentation/chomp-padded presentation/comment-above presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/plain presentation/quoted-double presentation/tag-before-anchor presentation/tag-directive value/int value/mapping value/merge-key value/non-string-key value/sequence 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","again":[{"o9":7},{"o0":0},{"o8":{"o9":-5}}],"base":{"o9":-5},"o":[{"o9":7},{"o0":0},{"o8":{"o9":-5}}]}

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

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