generated/2356

sha256 89f45af82d8b638575a7c3bc3c8f0772368cbb61c7e8bb7a32a2312220d20d4c

Document

%YAML 1.2
---
# c1
"base":
   &m1
   # c2
   "b0": 4
   # c3
   "b1": -3
   # c4
   "b2": -5
# c5
"item":
   # c6
   !!merge &k1 <<:
      !!map
      # c7
      "c0": 0
   # c8
   !!str "d0": -7

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/anchor node/tag-shorthand presentation/comment-above presentation/document-marker presentation/plain presentation/property-line presentation/quoted-double presentation/tag-before-anchor presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":4,"b1":-3,"b2":-5},"item":{"c0":0,"d0":-7}}

Answer groups

verdict split

go-yaml libfyaml perlref

accept

yaml.v3

refuse by the parser

yamlstar

refuse by the loader

value split

go-yaml

{"base":{"b0":4,"b1":-3,"b2":-5},"item":{"c0":0,"d0":-7}}

libfyaml

{"base":{"b0":4,"b1":-3,"b2":-5},"item":{"\u003c\u003c":{"c0":0},"d0":-7}}

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 rejected, explained refuse by the parser rejected, explained refused yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
value: yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
yaml.v3: yaml: found incompatible YAML document
go-yaml accepted accept ok same

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