Javier
01/30/2022, 2:16 AM@Serializable(with = CustomSealedClassSerializer::class)
. But I want to remove the dependency on json
this sealed class in that Gradle module so I tried to use a SerializerModule
Json {
serializersModule = SerializersModule {
contextual(CustomSealedClassSerializer::class) { args -> CustomSealedClassSerializer(args[0], args[1] }
}
...
}
This is working perfectly with local strings, but with Ktor 2.0.0-alpha-1
and doing a request, it is not working, and debugging I am getting that args
list is empty.
Is there any workaround?Dominaezzz
01/30/2022, 8:55 AMAleksei Tirman [JB]
01/31/2022, 8:45 AMJavier
01/31/2022, 8:59 AMJavier
01/31/2022, 8:59 AMAleksei Tirman [JB]
01/31/2022, 9:07 AMJavier
01/31/2022, 9:20 AMJavier
02/02/2022, 2:55 PM