generated/1740

sha256 6dff89d30bde33780e5e0482f4997766582ac7073be58a3d702294d9d5731a41

Document

%TAG !n-1! tag:yaml.org,2002:
---
!n-1!set {base: &m1 {b0: 4}, item: {!n-1!merge <<: *m1, !foo d0: -7, d1: -8}}

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresbreak/cr node/alias node/anchor node/tag-handle node/tag-local presentation/document-marker presentation/flow-collection presentation/plain presentation/tag-directive value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":4},"item":{"b0":4,"d0":-7,"d1":-8}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml yaml.v3

{"base":{"b0":4},"item":{"b0":4,"d0":-7,"d1":-8}}

libfyaml

{"base":{"b0":4},"item":{"\u003c\u003c":{"b0":4},"d0":-7,"d1":-8}}

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 ok different
document 0

written

base:
    b0: 4
item:
    b0: 4
    d0: -7
    d1: -8

read back

{"base":{"b0":4},"item":{"b0":4,"d0":-7,"d1":-8}}
go-yaml accepted accept ok same

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