sha256 196490397cfc70d5cab04166e0d11634a9dd230dbbaa6d5b5c7b40c02f064aff
%YAML 1.2
%TAG !e! tag:yaml.org,2002:
---
!foo {'o': &m3 !e!omap [{'o0': 0}, {'o1': -2}, {'o2': 2}], !e!str 'again': *m3, !e!str 'p': !e!pairs [{'p0': 1}, {'p0': 2}], 's': !e!set {'s0'}} # c1
| 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-local presentation/comment-inline presentation/document-marker presentation/flow-collection presentation/flow-key-alone presentation/plain presentation/quoted-single presentation/tag-directive presentation/yaml-directive value/int value/mapping value/non-string-key value/null value/sequence |
| meaning (yaml-1.2-core) | {"again":{"o0":0,"o1":-2,"o2":2},"o":{"o0":0,"o1":-2,"o2":2},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}} |
go-yaml libfyaml perlref yamlstar
accept
yaml.v3
refuse by the parser
go-yaml
{"again":{"o0":0,"o1":-2,"o2":2},"o":{"o0":0,"o1":-2,"o2":2},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}libfyaml
{"again":{"o0":0},"o":[{"o0":0},{"o1":-2},{"o2":2}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}yamlstar
{"again":[{"o0":0},{"o1":-2},{"o2":2}],"o":[{"o0":0},{"o1":-2},{"o2":2}],"p":[{"p0":1},{"p0":2}],"s":{"s0":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: ordered-map-as-sequence: the loader has no ordered map, and builds !!omap as a sequence of one-pair mappings | |
| 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.