Replies: 2 comments
-
Agree that this should be the default |
Beta Was this translation helpful? Give feedback.
-
Opened a draft PR: #142, then looked at this some more, and I think it's likely that changes in this lib are not needed. Here's why. In Jackson, the default serialization depends on
Basically it works like this:
This seems like a reasonable default. In our case the problem was caused by us building up the Jackson's |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The existing
JacksonSnapshotSerializer
with its default config serializesBigDecimal
values using scientific notation, e.g.:"amountInEur": 1E+2
instead of"amountInEur": 100
.I assume the non-scientific notation is the one preferred in snapshots in most applications, hence the proposal to change the default configuration in the library.
The change in code would be adding:
in
JacksonSnapshotSerializer
.Would such a change make sense? If yes, I'd be happy to contribute a PR.
The workaround is for the application to implement its own custom serializer like this:
and then specify it in
snapshot.properties
Beta Was this translation helpful? Give feedback.
All reactions