Vampire
07/11/2022, 2:02 AMoverride val descriptor = SerialDescriptor("...", CONTEXTUAL)
for the KSerializer
.
How would I port that to 1.3.x as the function does not expect a kind anymore?Sebastian Schuberth
07/11/2022, 6:47 AMdescriptor
is then not required anymore.Vampire
07/11/2022, 5:09 PMSebastian Schuberth
07/11/2022, 5:19 PMVampire
07/11/2022, 7:14 PMobject
, but a class with constructor and also a provided descriptor. And additionally the serializer is contextual. I needed quite some time and comments to get it working properly back then with 0.20.0.@InternalSerializationApi
override val descriptor = buildSerialDescriptor("...", CONTEXTUAL)
but I don't like the internal serialization api being used.
It's documentation says that it should not be used, and if necessary issues filed.
So is there another way to get a serial descriptor with CONTEXTUAL
kind?Emil Kantis
08/01/2022, 8:58 PMmapSerialDescriptor<String, Output>()
Vampire
08/01/2022, 9:18 PM