We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.6.0
if the return object of an API is a Map, like Map<String, List<SomeOjbect>> the generated code becomes
Map<String, List<SomeOjbect>>
return ktorfitClient.suspendRequest<Map<String, List<SomeOjbect>>, String, List<SomeOjbect>>(_requestData)!!
This doesn't work since now there are 3 values instead of 2 as per the interface. This seems to be related to how ReturnTypeData.innerTypeName works.
A return type of a Map generates valid code
No response
The text was updated successfully, but these errors were encountered:
Hi @kylelutze thank your for reporting this!
Sorry, something went wrong.
I have a similar issue with a type like Result<List<AttendanceSession>, BaamError>. Seems like the generics support in general is a bit iffy.
Result<List<AttendanceSession>, BaamError>
This can be worked around by using type aliases: you alias the generic type to a simple name and then use it in the API
This is fixed with Ktorfit 2.0.0
No branches or pull requests
Ktorfit version
1.6.0
What happened and how can we reproduce this issue?
if the return object of an API is a Map, like
Map<String, List<SomeOjbect>>
the generated code becomesThis doesn't work since now there are 3 values instead of 2 as per the interface. This seems to be related to how ReturnTypeData.innerTypeName works.
What did you expect to happen?
A return type of a Map generates valid code
Is there anything else we need to know about?
No response
The text was updated successfully, but these errors were encountered: