generated/2330

sha256 99cde30f38fbc40ab13c8a4dd7b784f3d9e9c22b2c5ff78cb90e0d490f519180

Document

---
!<!foo> base:
      &m4
      o9: -2
o:
      !<tag:yaml.org,2002:omap>
      -
            o0: -8
      -
            o1: 2
      -
            o8: *m4

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
representation/ordered-mapopen from construct on: each parser's stance decides
featuresbreak/crlf encoding/byte-order-mark node/alias node/anchor node/tag-verbatim presentation/document-marker presentation/plain presentation/property-line value/int value/mapping value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"o9":-2},"o":{"o0":-8,"o1":2,"o8":{"o9":-2}}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

{"base":{"o9":-2},"o":{"o0":-8,"o1":2,"o8":{"o9":-2}}}

libfyaml yaml.v3

{"base":{"o9":-2},"o":[{"o0":-8},{"o1":2},{"o8":{"o9":-2}}]}

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

base:
    o9: -2
o:
    - o0: -8
    - o1: 2
    - o8:
        o9: -2

read back

{"base":{"o9":-2},"o":[{"o0":-8},{"o1":2},{"o8":{"o9":-2}}]}
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.