jackson: don't fail serializing empty beans (#31033)

Notably, case objects.

It's not entirely clear to me why this started failing on Scala 3,
`AccountExampleSpec` picks `JacksonCborSerializer` both for Scala 2
and Scala 3, but only on 3 seems to require this option.
This commit is contained in:
Arnout Engelen 2022-01-06 15:21:09 +01:00 committed by GitHub
parent b56d3a104b
commit 4640338e73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ akka.serialization.jackson {
# but WRITE_DATES_AS_TIMESTAMPS=on has better performance.
WRITE_DATES_AS_TIMESTAMPS = off
WRITE_DURATIONS_AS_TIMESTAMPS = off
FAIL_ON_EMPTY_BEANS = off
}
# Configuration of the ObjectMapper deserialization features.