Why do I get ``` ISE: Class Duration have construc...
# serialization
m
Why do I get
Copy code
ISE: 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?
s
I think we'll prohibit partial auto-generation of serializers at some point in future, i.e. you'll have to override everything or nothing in the serializer
👍 1