generated/1436

sha256 8ddcd6d564de676078105ee7eb559be4f30eda7654789846f089383e42f42e3f

Document

%YAML 1.2
---
! {o: &m3 !<tag:yaml.org,2002:omap> [o0: 2, o1: -2], again: *m3, p: !<tag:yaml.org,2002:pairs> [p0: 1, p0: 2]}

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/cr encoding/byte-order-mark node/alias node/anchor node/tag-non-specific node/tag-verbatim presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/plain presentation/yaml-directive value/int value/mapping value/sequence
meaning (yaml-1.2-core){"again":{"o0":2,"o1":-2},"o":{"o0":2,"o1":-2},"p":[{"p0":1},{"p0":2}]}

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

go-yaml

{"again":{"o0":2,"o1":-2},"o":{"o0":2,"o1":-2},"p":[{"p0":1},{"p0":2}]}

libfyaml

{"again":{"o0":2},"o":[{"o0":2},{"o1":-2}],"p":[{"p0":1},{"p0":2}]}

yamlstar

{"again":[{"o0":2},{"o1":-2}],"o":[{"o0":2},{"o1":-2}],"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: block-scalar-lone-cr: in a block scalar broken by lone CRs, the reference parser keeps the first space of the indentation as content: "a: |\r x\r" gives " x\n" for "x\n"
yaml.v3 rejected, explained refuse by the parser rejected, explained refused yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
value: yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
yaml.v3: yaml: found incompatible YAML document
go-yaml accepted accept ok same

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