<@U0BFDUP0E> I see that you added the response-typ...
# squarelibraries
s
@jw I see that you added the response-type-keeper plugin to Retrofit last year. Is there a reason that it is limited to just the response types, and doesn’t also
keep
the types of the method arguments? We have a situation where we pass serialized data in the
@Body
of a request, and the plugin won’t automatically keep those types. I guess if it did, we’d need a different name for the plugin, since it would be keeping request AND response types.
j
Can you show me an example? The reason the response one is needed is because you might not actually use the response instance which would cause its type to be changed to
Object
and then fail at runtime. I don't see how that's possible to achieve with something that is a parameter.