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
longinteger values are exposed as strings by default by AppEngine API since they are 64 bit integers and JSON is only able to represent ~53 bit integers at most since all numbers are double.
This means that we should also accept integer values as input (since they are the only way to send longinteger values bigger than 53 bits with a JSON), but we currently don't.
Sketch of the fix
Add another clause to cast_valuehere which more or less does this:
defpcast_value(:longinteger,string_value)whenis_binary(string_value)do# Try to parse the value as integer, return `{:ok, int_value}` or `{:error, :unexpected_value_type}`enddefpcast_value(:longintegerarray,string_values)do# Similar but for an array of values. Map over them and return an `{:ok, list_of_ints}` or an error tuple.end
The text was updated successfully, but these errors were encountered:
longinteger
values are exposed as strings by default by AppEngine API since they are 64 bit integers and JSON is only able to represent ~53 bit integers at most since all numbers are double.This means that we should also accept integer values as input (since they are the only way to send
longinteger
values bigger than 53 bits with a JSON), but we currently don't.Sketch of the fix
Add another clause to
cast_value
here which more or less does this:The text was updated successfully, but these errors were encountered: