sha256 97f6cf545636e9a687e800d47cf9271e3f00617061e593964e2f63f71c8dc447
%YAML 1.1
---
'base': # c1
&m4
'o9': -8 # c2
'o': # c3
!!omap &m3
- # c4
'o0': -1 # c5
- # c6
'o1': -4 # c7
- # c8
<<: *m4 # c9
'again': *m3 # c10
's': # c11
!!set
's0': ~ # c12
's1': ~ # c13
| grammar | valid, vouched for up to construct |
| representation/ordered-map | open from construct on: each parser's stance decides |
| features | node/alias node/anchor node/tag-shorthand presentation/comment-inline presentation/document-marker presentation/plain presentation/property-line presentation/quoted-single presentation/tag-before-anchor presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence |
| meaning (yaml-1.2-core) | {"again":{"o0":-1,"o1":-4,"o9":-8},"base":{"o9":-8},"o":{"o0":-1,"o1":-4,"o9":-8},"s":{"s0":null,"s1":null}} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml
{"again":{"o0":-1,"o1":-4,"o9":-8},"base":{"o9":-8},"o":{"o0":-1,"o1":-4,"o9":-8},"s":{"s0":null,"s1":null}}libfyaml
{"again":{"o0":-1},"base":{"o9":-8},"o":[{"o0":-1},{"o1":-4},{"o9":-8}],"s":{"s0":null,"s1":null}}yaml.v3 yamlstar
{"again":[{"o0":-1},{"o1":-4},{"o9":-8}],"base":{"o9":-8},"o":[{"o0":-1},{"o1":-4},{"o9":-8}],"s":{"s0":null,"s1":null}}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted accept | different, explained | n/i | value: ordered-map-as-sequence: the Python binding has no ordered map, and returns !!omap as a sequence of one-pair mappings | |
| 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 | accepted accept | different, explained | same | value: merge-key-applied: yaml.v3 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 | |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.