generated/2063

sha256 41fad7bddf9f5046795e88c38736dcee7c078146a0ff87f1660ba43d7c53461d

Document

---
# c1
base: # c2
 &m4
 # c3
 o9: 7 # c4
# c5
o: # c6
 &m3 !<tag:yaml.org,2002:omap>
 # c7
 - # c8
  # c9
  o0: 0 # c10
 # c11
 - # c12
  # c13
  o1: -4 # c14
 # c15
 - # c16
  # c17
  <<: *m4 # c18
# c19
again: *m3 # c20
# c21
!<!foo> p: # c22
 !<tag:yaml.org,2002:pairs>
 # c23
 - # c24
  # c25
  p0: 1 # c26
 # c27
 - # c28
  # c29
  p0: 2 # c30

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/comment-above presentation/comment-inline presentation/document-marker presentation/plain presentation/property-line value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"again":{"o0":0,"o1":-4,"\u003c\u003c":{"o9":7}},"base":{"o9":7},"o":{"o0":0,"o1":-4,"\u003c\u003c":{"o9":7}},"p":[{"p0":1},{"p0":2}]}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

{"again":{"\u003c\u003c":{"o9":7},"o0":0,"o1":-4},"base":{"o9":7},"o":{"\u003c\u003c":{"o9":7},"o0":0,"o1":-4},"p":[{"p0":1},{"p0":2}]}

libfyaml

{"again":{"o0":0},"base":{"o9":7},"o":[{"o0":0},{"o1":-4},{"\u003c\u003c":{"o9":7}}],"p":[{"p0":1},{"p0":2}]}

yaml.v3

{"again":[{"o0":0},{"o1":-4},{"o9":7}],"base":{"o9":7},"o":[{"o0":0},{"o1":-4},{"o9":7}],"p":[{"p0":1},{"p0":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

again:
    - o0: 0
    - o1: -4
    - o9: 7
base:
    o9: 7
o:
    - o0: 0
    - o1: -4
    - o9: 7
p:
    - p0: 1
    - p0: 2

read back

{"again":[{"o0":0},{"o1":-4},{"o9":7}],"base":{"o9":7},"o":[{"o0":0},{"o1":-4},{"o9":7}],"p":[{"p0":1},{"p0":2}]}
value: merge-key-applied: yaml.v3 applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
go-yaml accepted accept ok same

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.