generated/1848/a collection key written twice

sha256 3ae1631049cacf3e7d6baaa8484c5ad432d5b5a0cf2f4d5ad450f48d68558353

Document

&a4 !<!foo>
# c1
&a1 "\u0031\u0032\u003A\u0033\u0034\u003A\u0035\u0036": null
# c2
&a2 "\u004A\u0051\u004E\u0023\u004F\u0020\u0056\u0075\u006A\u0075": *a2
# c3
"\u006F\u0066\u0066":
   !<!foo>
   # c4
   &a3 "\u0036\u0038\u0035\u005F\u0032\u0033\u0030\u002E\u0031\u0035": []
   # c5
   "\u003A\u0020\u0061": |-
      emoji 🙂
   # c6
   "\u0041\u002E\u0020\u005A\u0023\u0037\u0055\u004B\u0074\u006A\u0020":
      # c7
      "\u0031\u0039\u0030\u003A\u0032\u0030\u003A\u0033\u0030": False
      # c8
      "\u0054\u0031\u0075\u002E\u0050\u0037\u0023\u0069\u0031\u0067\u002D\u0059": *a2
   # c9
   "\u0061\u005C\u0062": !<tag:yaml.org,2002:timestamp> "\u0031\u0039\u0030\u0037\u002D\u0030\u0031\u002D\u0030\u0032\u0020\u0031\u0033\u003A\u0035\u0039\u003A\u0030\u0032\u002E\u0036\u0037"
   # c10
   *a2 : |-
      aliased
# c11
!<!foo> "\u0085\uE0FF\u008E\u007F": !<tag:yaml.org,2002:timestamp> "\u0031\u0039\u0038\u0036\u002D\u0030\u0031\u002D\u0030\u0038\u0020\u0030\u0034\u003A\u0034\u0031\u003A\u0031\u0034\u002E\u0030\u0033"
# c12
?
   # c13
   - &a1 |-
      12:34:56
: |-
   dup
# c14
?
   # c15
   - &a1 |-
      12:34:56
: |-
   dup2

Corpus

grammarvalid, vouched for up to construct
key/duplicatereject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node
featuresnode/alias node/anchor node/tag-verbatim presentation/block-literal presentation/comment-above presentation/escape-unicode presentation/explicit-key presentation/flow-collection presentation/key-below-the-indicator presentation/plain presentation/property-line presentation/quoted-double presentation/time-no-zone value/bool value/empty-collection value/mapping value/non-string-key value/null value/sequence value/string value/timestamp
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3 yamlstar

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref

accept

value

No source answered.

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i key/duplicate: the grammar has no production against a key written twice, and the reference parser implements the grammar alone, so it does not check this settled rule
libfyaml accepted refuse by the loader not scored n/i key/duplicate: fy-tool writes events without checking for a key written twice, and accepts most documents that write one TypeError: unhashable type: 'sequence'
yamlstar rejected, explained refuse by the loader not scored n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary" Error: Unknown tag: tag:yaml.org,2002:timestamp
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 [30:4] a sequence cannot be a JSON key

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