generated/315

sha256 ddefa2bb895b5bee1105c3d2ecef1763e29443c2fd9fd078bc119b6cea6e962b

Document

---
# c1
? ! 'n'
: !<tag:yaml.org,2002:null> ~
# c2
? 'b'
: !<tag:yaml.org,2002:binary> 'Hg0='

Corpus

grammarvalid, vouched for up to construct
representation/binaryopen from construct on: each parser's stance decides
featuresnode/tag-non-specific node/tag-verbatim presentation/comment-above presentation/document-marker presentation/explicit-key presentation/plain presentation/quoted-single value/binary value/mapping value/non-string-key value/null
meaning (yaml-1.2-core){"b":"Hg0=","n":null}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml

{"b":"Hg0=","n":null}

libfyaml yaml.v3

{"b":"\u001e\r","n":null}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept different, explained n/i value: binary-as-bytes: the Python binding decodes !!binary into its bytes, which the runner writes as a string, where the corpus states the base64 text: !!binary "Aw==" comes back as "\u0003"
yamlstar rejected, explained refuse by the loader rejected, explained n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
value: tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary"
Error: Unknown tag: tag:yaml.org,2002:binary
yaml.v3 accepted accept different, explained same value: binary-as-bytes: yaml.v3 decodes !!binary into its bytes, which the runner writes as a string, where the corpus states the base64 text: !!binary "Iwc=" comes back as "#\u0007"
go-yaml accepted accept ok same

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