generated/1842

sha256 45a5686b82ba90e55274df5439a99444d00f3a71d7c70f0586de5f06294871be

Document

? &a1 !<tag:yaml.org,2002:merge> <<
: # c1
 !<tag:yaml.org,2002:seq>
 - # c2
  ? 'merged1'
  : +6 # c3
 - # c4
  ? 'merged1'
  : -4 # c5
? ~
: ~ # c6

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresbreak/crlf node/anchor node/tag-verbatim presentation/comment-inline presentation/explicit-key presentation/number-signed presentation/plain presentation/property-line presentation/quoted-single value/int value/mapping value/merge-key value/non-string-key value/null value/sequence
meaning (yaml-1.2-core){"merged1":6,"null":null}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

{"merged1":6,"null":null}

libfyaml

{"\u003c\u003c":[{"merged1":6},{"merged1":-4}],"null":null}

yaml.v3



roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept different, explained n/i value: explicit-merge-not-applied: the Python binding does not apply the merge key, even under an explicit !!merge tag, and keeps "<<" as a plain key
yamlstar rejected, explained refuse by the loader rejected, explained n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
value: tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
Error: Unknown tag: tag:yaml.org,2002:merge
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.