shape/directive/a version directive with a major other than one

sha256 537dcc223a1852eec9248f2e8522d4c39479a96a6441165eab4ffa040832b4f9

Document

%YAML 2.0
---
a: 1

Corpus

grammarvalid, vouched for up to construct
directive/yaml-major-versionreject from compose on, 6.8.1: a processor must reject a directive whose major version differs from its own
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml libfyaml yaml.v3

refuse by the parser

perlref yamlstar

accept

value

yamlstar

{"a":1}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml rejected, settled refuse by the parser not scored n/i directive/yaml-major-version: 6.8.1: a processor must reject a directive whose major version differs from its own. The parser checks this compose rule at parse [ERR]: unsupport version number 2.0
yamlstar accepted, against the rules accept not scored n/i directive/yaml-major-version: 6.8.1: a processor must reject a directive whose major version differs from its own
yaml.v3 rejected, settled refuse by the parser not scored refused directive/yaml-major-version: 6.8.1: a processor must reject a directive whose major version differs from its own yaml.v3: yaml: found incompatible YAML document
go-yaml rejected, settled refuse by the parser not scored refused directive/yaml-major-version: 6.8.1: a processor must reject a directive whose major version differs from its own [1:7] unknown YAML version "2.0"

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