shape/tag/an int tag over text that is not an integer

sha256 0957dd26008fb7a0852364a70ff18c239c5e81d521c9e99a84f5e39b140dccdc

Document

k: !!int abc

Corpus

grammarvalid, vouched for up to construct
tag/int-not-an-integeropen 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 yamlstar

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref

accept

value

No source answered.

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 rejected, explained refuse by the loader not scored n/i integer-past-long: the loader builds integers as 64-bit longs, and rejects one past their range, written in decimal, octal or hexadecimal Error: YAML integer out of supported range: abc. Supported range is -9007199254740991 to 9007199254740991. Quote the value to load or dump it as a string.
yaml.v3 rejected, as declared refuse by the loader not scored refused tag/int-not-an-integer: yaml.v3 refuses this on purpose yaml.v3: yaml: cannot decode !!str `abc` as a !!int
go-yaml rejected, as declared refuse by the loader not scored refused tag/int-not-an-integer: go-yaml refuses this on purpose [1:10] cannot read "abc" as !!int

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