which is essentially a Json object with values of Boolean. The API call is generated with a correct return type of kotlin.collections.Map<kotlin.String, kotlin.Boolean>, but the internal deserialization does not work. Here is what it generates:
So it is treating the Map as a primitive type and not doing any special deserialization. When ran you get an error
E/HttpClient: Failure(io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class kotlin.collections.Map
Note that this is with version 0.10.0 as we have been unable to upgrade to the latest as it requires upgrading to Kotlin 1.4.31 and that is causing us problems.
I notice that you have recently added code to handle map deserialization here but I don't think that would help here as the template is going to the case where it thinks the return type is primitive.
We have a call that returns a result type of:
which is essentially a Json object with values of Boolean. The API call is generated with a correct return type of
kotlin.collections.Map<kotlin.String, kotlin.Boolean>
, but the internal deserialization does not work. Here is what it generates:So it is treating the Map as a primitive type and not doing any special deserialization. When ran you get an error
Note that this is with version 0.10.0 as we have been unable to upgrade to the latest as it requires upgrading to Kotlin 1.4.31 and that is causing us problems.
I notice that you have recently added code to handle map deserialization here but I don't think that would help here as the template is going to the case where it thinks the return type is primitive.