You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
A digit sequence with leading zeros that isn't one of these types (and identified as such) should instead be interpreted as a String, see: https://yaml.org/spec/1.2/spec.html#id2761292
I'm happy to contribute a PR if wanted.
Examples:
string: 00082
integer: 82
The text was updated successfully, but these errors were encountered:
dtolnay
changed the title
Incorrect identification of sequenzes of digits with one or more leading zero as Numbers
Incorrect identification of sequences of digits with one or more leading zero as Numbers
Oct 31, 2020
The YAML 1.2 Spec does not allow Numbers to start with a 0 unless it is used to identify different kinds of number formats (such as Octal, etc).
See
serde-yaml/src/de.rs
Line 523 in c49f115
A digit sequence with leading zeros that isn't one of these types (and identified as such) should instead be interpreted as a String, see: https://yaml.org/spec/1.2/spec.html#id2761292
I'm happy to contribute a PR if wanted.
Examples:
The text was updated successfully, but these errors were encountered: