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
Is your feature request related to a problem? Please describe.
GSON by default maps any numeric value defined in Object type to Double.
Same problem is inherited by Javers as it uses GSON under the hood.
GSON provided the solution for it long back. Javers should adopt it for better results with shadow api. google/gson#1290
Is your feature request related to a problem? Please describe.
GSON by default maps any numeric value defined in Object type to Double.
Same problem is inherited by Javers as it uses GSON under the hood.
GSON provided the solution for it long back. Javers should adopt it for better results with shadow api.
google/gson#1290
Example:
Result without setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE)
{
"id": 1,
"value": 9.999999999E9
}
Result with setObjectToNumberStrategy(ToNumberPolicy.LONG_OR_DOUBLE)
{
"id": 1,
"value": 9999999999
}
Describe the solution you'd like
A clear and concise description of what you want to happen.
Adding this should solve it.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: