generated/1228/a key repeated

sha256 cf1897f3e070b215ba7a4ba986e218cf0f979dcef9afada0845d254750d9f0f5

Document

---
&a2
!!str '&a': True # c1
!!str '&a': # c2
   &a1 <<: !!map # c3
      'merged0': 0 # c4
   True: # c5

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/anchor node/tag-shorthand presentation/comment-inline presentation/document-marker presentation/plain presentation/quoted-single value/bool value/int value/mapping value/merge-key value/non-string-key value/null
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml perlref yamlstar

accept

value split

libfyaml

{"\u0026a":{"\u003c\u003c":{"merged0":0},"true":null}}

yamlstar

{"\u0026a":{"merged0":0,"true":null}}

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 [4:1] mapping key "&a" already defined at [3:1]

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