sha256 18b9fd6483eb4f51a7b904cadcc1588a8e2198b9cda651c77965e1b0af7634c9
%YAML 1.2 --- ! |- - a
| grammar | valid, vouched for up to construct |
| tags | none |
| features | break/cr node/tag-non-specific presentation/block-literal presentation/chomp-padded presentation/document-marker presentation/tab-separation presentation/yaml-directive value/string |
| meaning (yaml-1.2-core) | "- a" |
go-yaml libfyaml perlref yamlstar
accept
yaml.v3
refuse by the parser
go-yaml libfyaml
"- a"
yamlstar
" - a"
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | ||
| libfyaml | accepted accept | ok | n/i | ||
| yamlstar | accepted accept | different, explained | n/i | value: block-scalar-lone-cr: in a block scalar broken by lone CRs, the reference parser keeps the first space of the indentation as content: "a: |\r x\r" gives " x\n" for "x\n" | |
| 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.