generated/2642

sha256 ec86e03e7fee85b372fba35d25f8e0073f6c7af8179a3c408c9e18bbdcb55327

Document

---
# c1
'base': # c2
  &m4
  # c3
  'o9': -1 # c4
# c5
'o': # c6
  !!omap &m3
  # c7
  - # c8
    # c9
    'o0': -7 # c10
  # c11
  - # c12
    # c13
    'o1': 0x6 # c14
  # c15
  - # c16
    # c17
    'o8': *m4 # c18
# c19
'again': *m3 # c20
# c21
'p': # c22
  !!pairs
  # c23
  - # c24
    # c25
    'p0': 0x1 # c26
  # c27
  - # c28
    # c29
    'p0': 0x2 # c30
# c31
's': # c32
  !!set
  # c33
  's0': ~ # c34
  # c35
  's1': ~ # c36

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-shorthand presentation/comment-above presentation/comment-inline presentation/document-marker presentation/number-hex presentation/plain presentation/property-line presentation/quoted-single presentation/tag-before-anchor value/int value/mapping value/null value/sequence
meaning (yaml-1.2-core){"again":{"o0":-7,"o1":6,"o8":{"o9":-1}},"base":{"o9":-1},"o":{"o0":-7,"o1":6,"o8":{"o9":-1}},"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml

{"again":{"o0":-7,"o1":6,"o8":{"o9":-1}},"base":{"o9":-1},"o":{"o0":-7,"o1":6,"o8":{"o9":-1}},"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

libfyaml

{"again":{"o0":-7},"base":{"o9":-1},"o":[{"o0":-7},{"o1":6},{"o8":{"o9":-1}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

yaml.v3

{"again":[{"o0":-7},{"o1":6},{"o8":{"o9":-1}}],"base":{"o9":-1},"o":[{"o0":-7},{"o1":6},{"o8":{"o9":-1}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

yamlstar

{"again":[{"o0":-7},{"o1":"0x6"},{"o8":{"o9":-1}}],"base":{"o9":-1},"o":[{"o0":-7},{"o1":"0x6"},{"o8":{"o9":-1}}],"p":[{"p0":"0x1"},{"p0":"0x2"}],"s":{"s0":null,"s1":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 accepted accept different, explained n/i value: int-non-decimal-as-string: the loader leaves an integer written 0x or 0o a string, where the core schema reads 0x1A as 26 and 0o17 as 15
yaml.v3 accepted accept different, explained same 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.