generated/362/a collection key written twice

sha256 774b35990b0b57f50c29be2567c292c6c4b72a6b16a56719fc5343bd1e1e1b3c

Document

---
{'base': &m4 {'o9': -1}, 'o': !<tag:yaml.org,2002:omap> ['o0': 08, 'o8': *m4], 'p': !<tag:yaml.org,2002:pairs> ['p0': 01, 'p0': 02], 's': !<tag:yaml.org,2002:set> {'s0': null}, ['base']: 'dup', ['base']: 'dup2'}	# c1

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 node/tag-verbatim presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/plain presentation/quoted-single presentation/tab-separation value/int value/mapping value/non-string-key value/null 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","base":{"o9":-1},"o":[{"o0":8},{"o8":{"o9":-1}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}

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

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