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
The json parser currently does its own parsing for epoch seconds rather than using the code in smithy-types, and it is using a f64 to do this parsing, which can lead to loss of precision (whereas smithy-types does its own parsing into higher precision types without floating points).
The json parser should be refactored to keep a reference to the original number string as well as the parsed equivalent so that the generated token stream parsing logic can decide to parse the timestamp with the better method in smithy-types.
The text was updated successfully, but these errors were encountered:
jdisanti
changed the title
Json parser parses epoch seconds timestamps itself rather than using smithy-types
Json parser parses epoch seconds itself rather than using aws-smithy-typesNov 8, 2021
The json parser currently does its own parsing for epoch seconds rather than using the code in smithy-types, and it is using a
f64
to do this parsing, which can lead to loss of precision (whereas smithy-types does its own parsing into higher precision types without floating points).The json parser should be refactored to keep a reference to the original number string as well as the parsed equivalent so that the generated token stream parsing logic can decide to parse the timestamp with the better method in smithy-types.
The text was updated successfully, but these errors were encountered: