IBM / java-sdk-core

Core functionality required by Java code generated by the IBM Cloud OpenAPI SDK Generator (openapi-sdkgen)
https://ibm.github.io/java-sdk-core/
Apache License 2.0
20 stars 21 forks source link

fix: use gson 'lazily parsed number' for 'object to number' strategy #187

Closed padamstx closed 2 years ago

padamstx commented 2 years ago

This commit makes a small change to our Gson factory so that it sets the "object to number" strategy to LAZILY_PARSED_NUMBER. The default value (DOUBLE) does not provide the fidelity needed when performing marshalling/unmarshalling steps involving generic datastructures like Map<String,Object>.

Signed-off-by: Phil Adams phil_adams@us.ibm.com

padamstx commented 2 years ago

Discussed this with @RICELLIS on slack and we agreed that moving forward with this change should be ok (famous last words perhaps :joy: ).

ibm-devx-sdk commented 2 years ago

:tada: This PR is included in version 9.17.4 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: