generated/1584

sha256 72f3d251933b9ca9576a7347ec0339784dde5407b90f9b85fb8d1bba1f83a2eb

Document

%YAML 1.1
---
!!str "base": &m4
   "o9": -5
"o": !!omap
   -
      "o0": 1
   -
      <<: *m4
   -
      "o1": -1
   -
      "o2": 8
"p": !!pairs
   -
      "p0": 1
   -
      "p0": 2
"s": !!set
   "s0": NULL

Corpus

grammarvalid, vouched for up to construct
representation/ordered-mapopen from construct on: each parser's stance decides
featuresnode/alias node/anchor node/tag-shorthand presentation/document-marker presentation/plain presentation/quoted-double presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence
meaning (yaml-1.2-core){"base":{"o9":-5},"o":{"o0":1,"o9":-5,"o1":-1,"o2":8},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml

{"base":{"o9":-5},"o":{"o0":1,"o1":-1,"o2":8,"o9":-5},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}

libfyaml yaml.v3 yamlstar

{"base":{"o9":-5},"o":[{"o0":1},{"o9":-5},{"o1":-1},{"o2":8}],"p":[{"p0":1},{"p0":2}],"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 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.