sha256 d9a8dd465b177fc778a30e93ae6fe927b87c73e26e59188f10ee14368e724572
%TAG !TAG2! tag:yaml.org,2002:
---
? !TAG2!str ""
: {? "---": &a1 TRUE, ? +0b11: 0x1} # c1
? 0b1010
: !TAG2!null null # c2
? 3.6997341983728704
: null # c3
| grammar | valid, vouched for up to construct |
| encoding/bom | open from parse on: each parser's stance decides |
| features | break/cr encoding/byte-order-mark node/anchor node/tag-handle presentation/comment-inline presentation/document-marker presentation/explicit-key presentation/flow-collection presentation/number-hex presentation/plain presentation/quoted-double presentation/tag-directive value/bool value/int value/mapping value/non-string-key value/null |
| meaning (yaml-1.2-core) | {"":{"+0b11":1,"---":true},"0b1010":null,"3.6997341983728704":null} |
go-yaml libfyaml perlref yaml.v3 yamlstar
accept
go-yaml libfyaml
{"":{"+0b11":1,"---":true},"0b1010":null,"3.6997341983728704":null}yaml.v3
yamlstar
{"":{"+0b11":"0x1","---":true},"0b1010":null,"3.6997341983728704":null}
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 | accepted accept | different, explained | same | value: json-cannot-write: yaml.v3 decodes a mapping with a key that is not a string into a map[any]any, which encoding/json cannot write, so the runner has no value for the document: "-0.0: true" | |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.