generated/1563

sha256 6a7222135fcecb0ca03c6ae4b3eea31b96344edc91cfb76cdcf2026114cdfa2b

Document

false:
 &a1 0.0: *a1
 !foo '0b1010': *a1

Corpus

grammarvalid, vouched for up to construct
tagsnone
featuresnode/alias node/anchor node/tag-local presentation/plain presentation/quoted-single value/mapping value/non-string-key
meaning (yaml-1.2-core){"false":{"0.0":0,"0b1010":0}}

Answer groups

verdict split

go-yaml libfyaml perlref yaml.v3

accept

yamlstar

refuse by the loader

value split

go-yaml libfyaml

{"false":{"0.0":0,"0b1010":0}}

yaml.v3



roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
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: !foo
yaml.v3 accepted accept different, explained different
document 0

written

false:
    0: 0
    "0b1010": 0

read back

map[interface {}]interface {}{false:map[interface {}]interface {}{"0b1010":0, 0:0}}
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.