-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
If an integer exceeds the limits of i64, it is converted to a float:
Lines 191 to 206 in 001b709
| match &*v { | |
| "~" | "null" | "Null" | "NULL" => Self::Null, | |
| "true" | "True" | "TRUE" => Self::Boolean(true), | |
| "false" | "False" | "FALSE" => Self::Boolean(false), | |
| _ => { | |
| if let Ok(integer) = v.parse::<i64>() { | |
| Self::Integer(integer) | |
| } else if let Some(float) = parse_core_schema_fp(&v) { | |
| Self::FloatingPoint(float.into()) | |
| } else { | |
| Self::String(v) | |
| } | |
| } | |
| } | |
| } | |
| } |
Can we just return an error saying that the number is too large?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels