sha256 9757a2408788f332683ddbcab7ce72937202b15a7e266c7bb4b4eb96d9b21cd5
%YAML 1.1
%TAG !x! tag:yaml.org,2002:
---
!
# c1
"base": &m4 # c2
# c3
"o9": 010 # c4
# c5
!x!str "o": !x!omap # c6
# c7
- # c8
# c9
"o0": -2 # c10
# c11
- # c12
# c13
"o8": *m4 # c14
# c15
"p": !x!pairs # c16
# c17
- # c18
# c19
"p0": 01 # c20
# c21
- # c22
# c23
"p0": 02 # c24
| 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-handle node/tag-non-specific presentation/comment-above presentation/comment-inline presentation/document-marker presentation/plain presentation/quoted-double presentation/tag-directive presentation/yaml-directive value/int value/mapping value/non-string-key value/sequence |
| meaning (yaml-1.2-core) | {"base":{"o9":8},"o":{"o0":-2,"o8":{"o9":8}},"p":[{"p0":1},{"p0":2}]} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml
{"base":{"o9":8},"o":{"o0":-2,"o8":{"o9":8}},"p":[{"p0":1},{"p0":2}]}libfyaml yaml.v3
{"base":{"o9":8},"o":[{"o0":-2},{"o8":{"o9":8}}],"p":[{"p0":1},{"p0":2}]}yamlstar
{"base":{"o9":10},"o":[{"o0":-2},{"o8":{"o9":10}}],"p":[{"p0":1},{"p0":2}]}
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: ordered-map-as-sequence: the loader has no ordered map, and builds !!omap as a sequence of one-pair mappings | |
| yaml.v3 | accepted accept | different, explained | same | value: ordered-map-as-sequence: yaml.v3 has no ordered map, and decodes !!omap as a sequence of one-pair mappings | |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.