Hello everybody :slightly_smiling_face: is tehre i...
# ktor
o
Hello everybody 🙂 is tehre in ktor opportunity to automatically convert data types for
setBody
? I am using list and it throw an error with
Exception in thread "main" kotlin.reflect.jvm.internal.KotlinReflectionInternalError: Function 'create$lambda-0' (JVM signature: create$lambda-0(Lio/ktor/client/request/HttpRequestBuilder;Ldev/inmo/micro_utils/repos/ktor/client/crud/KtorWriteStandardCrudRepoClient;Ljava/util/List;)V) not resolved in class dev.inmo.micro_utils.repos.ktor.client.crud.KtorWriteStandardCrudRepoClient: no members found
. I am using content negotiation and set up application json content type
a
To what types do you want to convert data types? Could you please share your code?
o
I found that in case I am using the
setBody
fun inside of fun with reified parameter is works correctly
p
I don't like that API at all as it isn't compile time safe. We have extensions that take the object as well as an serializer.
âž• 1
h
We too. It prevents (network) api changes.