-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Serializing BigDecimal
values inside containers ignores shape override
#2519
Comments
Interesting. Hmmh. Thank you for reporting the problem. This may be tricky to handle due to lack of typing. |
Verified, does occur with 2.10 too. Will add a failing test first but then need to think careful of how this could be untangled... |
I think I have an idea of how this problem could be resolved (by not passing Trying out minimal change only introduces 1 actual regression failure for existing test suite, which is a good sign. But still. Minimal fix itself is within |
Looking deeper, passing A much simpler short-term fix seems to be to remove lazy-caching of calculated But I will probably also want to change how "secondary" serializers are fetched via |
BigDecimal
values inside containers ignores shape override
Using the config overrides described in #1911
Reproduction pseudocode:
Expected:
Both BigDecimals to be JSON Strings
Actual:
Only
value
is JSON StringVersion: 2.9.6
The text was updated successfully, but these errors were encountered: