martin.petrulak
11/08/2019, 10:53 AM/cocktailIngredientMatrix. Both of them return lists.
All works perfectly fine via postman.
The problem comes when i want to call those endpoints from my multiplatform project.
I have a HttpClient with following configuration:
install(JsonFeature) {
serializer = KotlinxSerializer().apply {
register(CocktailPackage.serializer())
register(User.serializer())
register(Ingredient.serializer().list)
register(CocktailIngredientMatrix.serializer().list)
}
}
If i call /ingredients and Serializer doesnt contain register(CocktailIngredientMatrix.serializer().list). Code works
If i call /cocktailIngredientMatrix and Serializer doesnt contain register(Ingredient.serializer().list). Code works
This is super weird. Is this a known issue ?
serializer_version = "0.13.0"
ktor_version = "1.2.5"