Marc Knaup
06/02/2019, 11:21 PMISE: Class Duration have constructor parameters which are not properties and therefore it is not serializable automatically
When I specify @Serializable(with = DurationSerializer::class)
and a matching @Serializer(forClass = Duration::class)
?
There shouldn't be automatic serialization.
EDIT: oh wow, it happens when I "half-specify" a serializer.
I had deserialize
and serialize
but not descriptor
.
Kinda unexpected that if you create a custom serializer it generates a descriptor automatically based on the constructor which may be a total mismatch with what my serializer actually does 🤔
Is that intentional?sandwwraith
06/03/2019, 11:19 AM