sha256 6d21bd39a1ed65f89346b0b3222e3c2865f3967f5f8046be97ef223c6fd89159
%YAML 1.2 --- &a1 0x11 # c1
| grammar | valid, vouched for up to construct |
| encoding/bom | open from parse on: each parser's stance decides |
| features | break/crlf encoding/byte-order-mark node/anchor presentation/comment-inline presentation/document-marker presentation/number-hex presentation/plain presentation/yaml-directive value/int |
| meaning (yaml-1.2-core) | 17 |
go-yaml libfyaml perlref yamlstar
accept
yaml.v3
refuse by the parser
go-yaml libfyaml
17
yamlstar
"0x11"
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: int-non-decimal-as-string: the loader leaves an integer written 0x or 0o a string, where the core schema reads 0x1A as 26 and 0o17 as 15 | |
| 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.