shape/directive/a version directive and a tag directive together

sha256 2340eeffb4f6419454a41a79d2eb67a650b1c2450c6a2f50c1fb951df026fdbc

Document

%YAML 1.2
%TAG !e! tag:a,2011:
---
a: 1

Corpus

grammarvalid, vouched for up to construct
directive/multipleaccept from compose on, 6.8: nothing limits a document to one directive, and a %YAML with a %TAG is the ordinary prelude
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value

go-yaml libfyaml yamlstar

{"a":1}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept not scored n/i
yamlstar accepted accept not scored n/i
yaml.v3 rejected, explained refuse by the parser not scored refused 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 not scored same

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