generated/2027

sha256 fbe2c9aea17c2a29dbd908e83575560c991a8564a1fc68894f2a697a2e537940

Document

%YAML 1.1
%TAG !x! tag:yaml.org,2002:
---
# c1
"base": &m4 # c2
  # c3
  "o9": 8 # c4
# c5
"o": !x!omap &m3 # c6
  # c7
  - # c8
    # c9
    "o0": -2 # c10
  # c11
  - # c12
    # c13
    <<: *m4 # c14
  # c15
  - # c16
    # c17
    "o8": *m4 # c18
# c19
! "again": *m3 # c20
# c21
"p": !x!pairs # c22
  # 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
featuresnode/alias node/anchor node/tag-handle node/tag-non-specific presentation/comment-above presentation/comment-inline presentation/document-marker presentation/plain presentation/quoted-double presentation/tag-before-anchor presentation/tag-directive presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"again":{"o0":-2,"o9":8,"o8":{"o9":8}},"base":{"o9":8},"o":{"o0":-2,"o9":8,"o8":{"o9":8}},"p":[{"p0":1},{"p0":2}]}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml

{"again":{"o0":-2,"o8":{"o9":8},"o9":8},"base":{"o9":8},"o":{"o0":-2,"o8":{"o9":8},"o9":8},"p":[{"p0":1},{"p0":2}]}

libfyaml

{"again":{"o0":-2},"base":{"o9":8},"o":[{"o0":-2},{"o9":8},{"o8":{"o9":8}}],"p":[{"p0":1},{"p0":2}]}

yaml.v3 yamlstar

{"again":[{"o0":-2},{"o9":8},{"o8":{"o9":8}}],"base":{"o9":8},"o":[{"o0":-2},{"o9":8},{"o8":{"o9":8}}],"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 accepted accept different, explained n/i value: merge-key-applied: the loader 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
yaml.v3 accepted accept different, explained same 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.