generated/309/a key repeated

sha256 2218629e34008a540362ea9ac818384ab1de797c9378630499a0f23bfeed5d67

Document

%YAML 1.2
---
base: # c1
  &m1
  b0: +1 # c2
  b1: -1 # c3
base: # c4
  <<: *m1 # c5
  d0: -5 # c6
  d1: +2 # c7

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 presentation/comment-inline presentation/document-marker presentation/number-signed presentation/plain presentation/property-line presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

libfyaml

{"base":{"\u003c\u003c":{"b0":1,"b1":-1},"d0":-5,"d1":2}}

yamlstar

{"base":{"b0":1,"b1":-1,"d0":-5,"d1":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 parser 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: found incompatible YAML document
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 [3:1]

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