sha256 8118544779fa050ee979669ea459486a9a35ceedd46382726e22da17bc0f86b7
%YAML 1.2
%TAG !x! tag:yaml.org,2002:
---
!x!str "base": # c1
&m1
"b0": -9 # c2
"b1": -1 # c3
"item": # c4
<<: # c5
- *m1 # c6
- # c7
"c0": -1 # c8
"d0": 0 # c9
"d1": 0 # c10
| grammar | valid, vouched for up to construct |
| tags | none |
| features | node/alias node/anchor node/tag-handle presentation/comment-inline presentation/document-marker presentation/plain presentation/property-line presentation/quoted-double presentation/tag-directive presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/sequence |
| meaning (yaml-1.2-core) | {"base":{"b0":-9,"b1":-1},"item":{"\u003c\u003c":[{"b0":-9,"b1":-1},{"c0":-1}],"d0":0,"d1":0}} |
go-yaml libfyaml perlref yamlstar
accept
yaml.v3
refuse by the parser
go-yaml libfyaml
{"base":{"b0":-9,"b1":-1},"item":{"\u003c\u003c":[{"b0":-9,"b1":-1},{"c0":-1}],"d0":0,"d1":0}}yamlstar
{"base":{"b0":-9,"b1":-1},"item":{"b0":-9,"b1":-1,"c0":-1,"d0":0,"d1":0}}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted accept | ok | n/i | ||
| yamlstar | accepted accept | different, explained | n/i | value: merge-key-applied: the loader 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 | |
| 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.