You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the JspoonRetrofitConverter only works for Call< TypedResponseClass > e.g. Response< TypedClass > however when I have a generic type such as ApiResponse< T > which would correspond to a response object of Response< ApiResponse< T > >, ClassCastException occurs.
specifically in line 30 of JspoonConverterFactory.java because of the Class< ? > casting.
return new JspoonResponseBodyConverter<>(retrofit.baseUrl(),
jspoon.adapter((Class<?>) type));
Is it possible to also change the code such as Parameterized types e.g. ApiResponse< T > can also generate an appropriate converter? Basically if it is a Parameterized type, I want the corresponding converter for < T >.
The text was updated successfully, but these errors were encountered:
Using the JspoonRetrofitConverter only works for Call< TypedResponseClass > e.g. Response< TypedClass > however when I have a generic type such as ApiResponse< T > which would correspond to a response object of Response< ApiResponse< T > >, ClassCastException occurs.
specifically in line 30 of JspoonConverterFactory.java because of the Class< ? > casting.
Is it possible to also change the code such as Parameterized types e.g. ApiResponse< T > can also generate an appropriate converter? Basically if it is a Parameterized type, I want the corresponding converter for < T >.
The text was updated successfully, but these errors were encountered: