generated/2964

sha256 68fb1a27dc10f3935c44c0e0340f0ca45e8d3755a7475b0acae6721da5ca9e76

Document

!<tag:yaml.org,2002:set>
o:
     &m3 !<tag:yaml.org,2002:omap>
     -
          o0: 0
     -
          o1: 3
again: *m3
!<!foo> s:
     !<tag:yaml.org,2002:set>
     s0: null

Corpus

grammarvalid, vouched for up to construct
representation/ordered-mapopen from construct on: each parser's stance decides
featuresbreak/crlf node/alias node/anchor node/tag-verbatim presentation/plain presentation/property-line value/int value/mapping value/non-string-key value/null value/sequence
meaning (yaml-1.2-core){"again":{"o0":0,"o1":3},"o":{"o0":0,"o1":3},"s":{"s0":null}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

{"again":{"o0":0,"o1":3},"o":{"o0":0,"o1":3},"s":{"s0":null}}

libfyaml

{"again":{"o0":0},"o":[{"o0":0},{"o1":3}],"s":{"s0":null}}

yaml.v3

{"again":[{"o0":0},{"o1":3}],"o":[{"o0":0},{"o1":3}],"s":{"s0":null}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
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 rejected, explained refuse by the loader rejected, explained n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
value: tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
Error: Unknown tag: !foo
yaml.v3 accepted accept different, explained different
document 0

written

again:
    - o0: 0
    - o1: 3
o:
    - o0: 0
    - o1: 3
s:
    s0: null

read back

{"again":[{"o0":0},{"o1":3}],"o":[{"o0":0},{"o1":3}],"s":{"s0":null}}
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.