shape/tag/a float tag over text that is not a number

sha256 4b0a0f33ee7365072a0fd51f6ec0cfc1926ad490715b896688455e0954f6ee15

Document

k: !!float xyz

Corpus

grammarvalid, vouched for up to construct
tag/float-not-a-numberopen from construct on: each parser's stance decides
tag/secondaryaccept from compose on, 6.8.2.2: the secondary handle is declared by default as tag:yaml.org,2002:
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

accept

value

yamlstar

{"k":0}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted refuse by the loader not scored n/i ValueError: Failed to parse YAML/JSON
yamlstar accepted accept not scored n/i
yaml.v3 rejected, as declared refuse by the loader not scored refused tag/float-not-a-number: yaml.v3 refuses this on purpose yaml.v3: yaml: cannot decode !!str `xyz` as a !!float
go-yaml rejected, as declared refuse by the loader not scored refused tag/float-not-a-number: go-yaml refuses this on purpose [1:12] cannot read "xyz" as !!float

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