Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MessagePackMapper#handleBigDecimalAsString #745

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

komamitsu
Copy link
Member

Context

We've received some issues that jackson-dataformat-msgpack fails to serialize large BigDecimal values. It's because the default internal type double can't store large BigDecimal values. We've found a workaround, but the same issue has been reported.

Changes

This PR introduces MessagePackMapper#handleBigDecimalAsString with which users can easily use the workaround, and recommends to use the new method in README

@komamitsu komamitsu merged commit 9586366 into develop Jul 10, 2023
6 checks passed
@komamitsu komamitsu deleted the handle-bigdecimal-as-string branch July 10, 2023 13:25
@komamitsu komamitsu self-assigned this Jul 10, 2023
@xerial
Copy link
Member

xerial commented Sep 27, 2023

@komamitsu It seems a similar type escalation mechanism is necessary for BigInteger as well

@komamitsu
Copy link
Member Author

Handled BigInteger in #768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants