generated/2215

sha256 424bdf4401419acd33f6d65d4ba32904c3b7ee0b1ec6b6c554da5c3a7d32650c

Document

%YAML 1.2
%TAG !x! tag:yaml.org,2002:
---
!x!set {!x!str base: &m4 {o9: -2}, o: !x!omap [o0: -5, o1: 0, <<: *m4, o2: 5], p: !x!pairs [p0: 1, p0: 2]}

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-handle presentation/document-marker presentation/flow-collection presentation/flow-pair presentation/plain presentation/tag-directive presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/sequence
meaning (yaml-1.2-core){"base":{"o9":-2},"o":{"o0":-5,"o1":0,"\u003c\u003c":{"o9":-2},"o2":5},"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

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

libfyaml

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

yamlstar

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