sha256 1500eeabd634f95b60afd46767776afcb08e8d3c1603b7a6be2e4f79137c2d91
!!set
# c1
'base': &m4 # c2
# c3
'o9': 0x4 # c4
# c5
'o': &m3 !!omap # c6
# c7
- # c8
# c9
'o0': -1 # c10
# c11
- # c12
# c13
<<: {'o9': 0x7} # c14
# c15
- # c16
# c17
'o1': 0x5 # c18
# c19
- # c20
# c21
'o2': 0x3 # c22
# c23
- # c24
# c25
'o8': *m4 # c26
# c27
'again': *m3 # c28
# c29
'p': !!pairs # c30
# c31
- # c32
# c33
'p0': 0x1 # c34
# c35
- # c36
# c37
'p0': 0x2 # c38
| grammar | valid, vouched for up to construct |
| representation/ordered-map | open from construct on: each parser's stance decides |
| features | break/crlf node/alias node/anchor node/tag-shorthand presentation/comment-above presentation/comment-inline presentation/flow-collection presentation/number-hex presentation/plain presentation/quoted-single value/int value/mapping value/merge-key value/non-string-key value/sequence |
| meaning (yaml-1.2-core) | {"again":{"o0":-1,"\u003c\u003c":{"o9":7},"o1":5,"o2":3,"o8":{"o9":4}},"base":{"o9":4},"o":{"o0":-1,"\u003c\u003c":{"o9":7},"o1":5,"o2":3,"o8":{"o9":4}},"p":[{"p0":1},{"p0":2}]} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml
{"again":{"\u003c\u003c":{"o9":7},"o0":-1,"o1":5,"o2":3,"o8":{"o9":4}},"base":{"o9":4},"o":{"\u003c\u003c":{"o9":7},"o0":-1,"o1":5,"o2":3,"o8":{"o9":4}},"p":[{"p0":1},{"p0":2}]}libfyaml
{"again":{"o0":-1},"base":{"o9":4},"o":[{"o0":-1},{"\u003c\u003c":{"o9":7}},{"o1":5},{"o2":3},{"o8":{"o9":4}}],"p":[{"p0":1},{"p0":2}]}yaml.v3
{"again":[{"o0":-1},{"o9":7},{"o1":5},{"o2":3},{"o8":{"o9":4}}],"base":{"o9":4},"o":[{"o0":-1},{"o9":7},{"o1":5},{"o2":3},{"o8":{"o9":4}}],"p":[{"p0":1},{"p0":2}]}yamlstar
{"again":[{"o0":-1},{"o9":"0x7"},{"o1":"0x5"},{"o2":"0x3"},{"o8":{"o9":"0x4"}}],"base":{"o9":"0x4"},"o":[{"o0":-1},{"o9":"0x7"},{"o1":"0x5"},{"o2":"0x3"},{"o8":{"o9":"0x4"}}],"p":[{"p0":"0x1"},{"p0":"0x2"}]}
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: int-non-decimal-as-string: the loader leaves an integer written 0x or 0o a string, where the core schema reads 0x1A as 26 and 0o17 as 15 | |
| 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.