shape/key/a key colliding with one an alias resolves to

sha256 b8d28934c55a43f160012bff3956d958267025b4697080928b603cd1761be767

Document

k: &a n
*a : 1
n: 2

Corpus

grammarvalid, vouched for up to construct
anchor/alias-as-keyaccept from compose on, 7.1: an alias is a node, and a node may be a mapping key
key/duplicate-after-resolutionreject from compose on, 3.2.1.1: keys are equal when they resolve to the same node, however they are written
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml perlref yaml.v3 yamlstar

accept

value

libfyaml yaml.v3 yamlstar

{"k":"n","n":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, against the rules accept not scored n/i key/duplicate-after-resolution: 3.2.1.1: keys are equal when they resolve to the same node, however they are written
yaml.v3 accepted, against the rules accept not scored same key/duplicate-after-resolution: 3.2.1.1: keys are equal when they resolve to the same node, however they are written
go-yaml rejected, settled refuse by the loader not scored refused key/duplicate-after-resolution: 3.2.1.1: keys are equal when they resolve to the same node, however they are written [3:1] mapping key "n" already defined at [2:1]

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