generated/2064

sha256 ea61a45d6c50c132da56f6eec7e4273bf1c3b8763ee895e0843bb9f9a5425f11

Document

# c1
!foo 'base': # c2
     &m1
     # c3
     'b0': -1 # c4
# c5
'item': # c6
     # c7
     !!merge &k1 <<: # c8
          !!pairs
          # c9
          - *m1 # c10
          # c11
          - # c12
               # c13
               'c0': -7 # c14
     # c15
     'b0': 99 # c16

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-local node/tag-shorthand presentation/comment-above presentation/comment-inline presentation/plain presentation/property-line presentation/quoted-single presentation/tag-before-anchor value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"b0":-1},"item":{"b0":99,"c0":-7}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml yaml.v3

{"base":{"b0":-1},"item":{"b0":99,"c0":-7}}

libfyaml

{"base":{"b0":-1},"item":{"\u003c\u003c":[{"b0":-1},{"c0":-7}],"b0":99}}

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: -1
item:
    b0: 99
    c0: -7

read back

{"base":{"b0":-1},"item":{"b0":99,"c0":-7}}
go-yaml accepted accept ok same

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