generated/1625

sha256 cfcc993234948a5c35fdd4f6d78b1450b42af56951f5f33ba418b1a6e6550355

Document

---
!!set
? 'base'
: &m1
 ? 'b0'
 : -2
 ? 'b1'
 : -8
 ? 'b2'
 : +1
? 'item'
:
 ? <<
 : &m2
  ? 'c0'
  : +1
  ? 'c1'
  : -1
? 'again'
: *m2

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-shorthand presentation/document-marker presentation/explicit-key presentation/number-signed presentation/plain presentation/quoted-single value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"again":{"c0":1,"c1":-1},"base":{"b0":-2,"b1":-8,"b2":1},"item":{"\u003c\u003c":{"c0":1,"c1":-1}}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml libfyaml

{"again":{"c0":1,"c1":-1},"base":{"b0":-2,"b1":-8,"b2":1},"item":{"\u003c\u003c":{"c0":1,"c1":-1}}}

yaml.v3 yamlstar

{"again":{"c0":1,"c1":-1},"base":{"b0":-2,"b1":-8,"b2":1},"item":{"c0":1,"c1":-1}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept different, explained n/i value: merge-key-applied: the loader applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
yaml.v3 accepted accept different, explained same value: merge-key-applied: yaml.v3 applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
go-yaml accepted accept ok same

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