shape/directive/two version directives for one document

sha256 c0d34bc65256ca27d40c49ead387b382ce112fb7ce74082100bb2317eed8d6e4

Document

%YAML 1.2
%YAML 1.2
---
a: 1

Corpus

grammarvalid, vouched for up to construct
directive/yaml-repeatedreject from compose on, 6.8.1: it is an error to specify more than one YAML directive for the same document
featuresnone
meaning (none stated)

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

refuse by the parser

value

No source answered.

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, settled refuse by the parser n/i n/i directive/yaml-repeated: 6.8.1: it is an error to specify more than one YAML directive for the same document. The parser checks this compose rule at parse
libfyaml rejected, settled refuse by the parser not scored n/i directive/yaml-repeated: 6.8.1: it is an error to specify more than one YAML directive for the same document. The parser checks this compose rule at parse stdin:2:7: error: duplicate version directive
yamlstar rejected, settled refuse by the parser not scored n/i directive/yaml-repeated: 6.8.1: it is an error to specify more than one YAML directive for the same document Error: parse: Multiple %YAML directives not allowed
yaml.v3 rejected, settled refuse by the parser not scored refused directive/yaml-repeated: 6.8.1: it is an error to specify more than one YAML directive for the same document yaml.v3: yaml: found incompatible YAML document
go-yaml rejected, settled refuse by the parser not scored refused directive/yaml-repeated: 6.8.1: it is an error to specify more than one YAML directive for the same document [2:7] a document takes at most one YAML directive

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