Armond Avanes
10/02/2024, 11:08 PM@Serializable
data class with kotlin.uuid.Uuid
as one of its properties. I'm using Kotlin 2.0.21-RC and Kotlinx-Serialization 1.7.3, but I get the following compilation error:
Serializer has not been found for type 'kotlin.uuid.Uuid'. To use context serializer as fallback, explicitly annotate type or property with @Contextual
From what I understand, there is now a built-in kotlin.uuid.Uuid
serializer in Kotlinx-Serialization according to the following PR:
https://github.com/Kotlin/kotlinx.serialization/pull/2744
Is there any particular setup I need to do to make it work?hfhbd
10/03/2024, 10:01 AMArmond Avanes
10/03/2024, 7:52 PM