I have ``` @Serializable class Response( v...
# serialization
s
I have
Copy code
@Serializable
class Response(
        val localDate: LocalDate
)

@Serializable(with = LocalDateSerializer::class)
expect class LocalDate

@Serializer(LocalDate::class)
expect object LocalDateSerializer : KSerializer<LocalDate>
But it complains that no Serializer for element of type LocalDate has been found. Am I doing something wrong ?
s
Do you have annotation also on actual class? I'm afraid it's necessary
s
Which actual class? If I annotate: Both expect/actual
LocalDate
and not `LocalDateSerializer`: Internal error
Recursion detected on input: LocalDate...
Both expect/acutal
LocalDateSerializer
and not `LocalDate`:
Serializer for element of type LocalDate has not been found