sha256 69684302bc21155a46c4430990ce25cd91f76cdfe23879b1c6bfdf80bcbddc65
%YAML 1.2
---
# c1
! 'base': &m4 {'o9': 0o2} # c2
# c3
'o': !<tag:yaml.org,2002:omap> &m3 ['o0': -4, 'o1': 0o2, 'o2': -6, 'o8': *m4] # c4
# c5
'again': *m3 # c6
# c7
'p': !<tag:yaml.org,2002:pairs> ['p0': 0o1, 'p0': 0o2] # c8
| 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-non-specific node/tag-verbatim presentation/comment-above presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/number-octal presentation/plain presentation/quoted-single presentation/tag-before-anchor presentation/yaml-directive value/int value/mapping value/non-string-key value/sequence |
| meaning (yaml-1.2-core) | {"again":{"o0":-4,"o1":2,"o2":-6,"o8":{"o9":2}},"base":{"o9":2},"o":{"o0":-4,"o1":2,"o2":-6,"o8":{"o9":2}},"p":[{"p0":1},{"p0":2}]} |
go-yaml libfyaml perlref yamlstar
accept
yaml.v3
refuse by the parser
go-yaml
{"again":{"o0":-4,"o1":2,"o2":-6,"o8":{"o9":2}},"base":{"o9":2},"o":{"o0":-4,"o1":2,"o2":-6,"o8":{"o9":2}},"p":[{"p0":1},{"p0":2}]}libfyaml
{"again":{"o0":-4},"base":{"o9":2},"o":[{"o0":-4},{"o1":2},{"o2":-6},{"o8":{"o9":2}}],"p":[{"p0":1},{"p0":2}]}yamlstar
{"again":[{"o0":-4},{"o1":"0o2"},{"o2":-6},{"o8":{"o9":"0o2"}}],"base":{"o9":"0o2"},"o":[{"o0":-4},{"o1":"0o2"},{"o2":-6},{"o8":{"o9":"0o2"}}],"p":[{"p0":"0o1"},{"p0":"0o2"}]}
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 | 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.