generated/1049

sha256 b0efc1d7824171ab3346c07f5ee77369d47f1b82e266d101d7d85fd4fcb083f1

Document

# c1
'base':
 &m1
 # c2
 'b0': -6
 # c3
 'b1': 0
# c4
!foo 'item':
 # c5
 !!merge <<:
  # c6
  - *m1
  # c7
  -
   # c8
   !!str 'c0': !!int -7
 # c9
 'd0': -9
 # c10
 !!str 'd1': -5
 # c11
 'b0': 99

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresbreak/crlf node/alias node/anchor node/tag-local node/tag-shorthand presentation/comment-above presentation/plain presentation/property-line presentation/quoted-single value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"b0":-6,"b1":0},"item":{"b0":99,"b1":0,"c0":-7,"d0":-9,"d1":-5}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml yaml.v3

{"base":{"b0":-6,"b1":0},"item":{"b0":99,"b1":0,"c0":-7,"d0":-9,"d1":-5}}

libfyaml

{"base":{"b0":-6,"b1":0},"item":{"\u003c\u003c":[{"b0":-6,"b1":0},{"c0":-7}],"b0":99,"d0":-9,"d1":-5}}

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: !foo
yaml.v3 accepted accept ok different
document 0

written

base:
    b0: -6
    b1: 0
item:
    b0: 99
    b1: 0
    c0: -7
    d0: -9
    d1: -5

read back

{"base":{"b0":-6,"b1":0},"item":{"b0":99,"b1":0,"c0":-7,"d0":-9,"d1":-5}}
go-yaml accepted accept ok same

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