https://kotlinlang.org logo
#serialization
Title
# serialization
j

Jorge Bo

01/19/2023, 1:59 PM
Hi, in my project we are using jackson as serialization library, however we need to import a lib that was build with kotlinx-serialization using @Serializable and now we need to ignore some properties of it. Is it possible to configure it somehow? I’m afraid of of conflicts between both libraries.
Copy code
using @Serializer(forClass = throws Cannot generate external serializer 'CustomSerializer': class 'CsutomDTO' is defined in another module
d

Dirk Hoffmann

02/03/2023, 3:56 PM
I have the same problem after upgrading to kotlin 1.8.0 … just commented/deleted the
Copy code
@Serializer(forClass = XXX::class)
annotation, and that got it working again. (Though I think the @Serializer annotation makes sense and it feels more like a bug to not have the annotation on my class(es)
80 Views