which doesn't compile because of the null statements.
The proposed solution has the disadvantage that if somebody has a param actually called request (and no parameterName for the body), it will conflict with the default value here. However, I think this is unlikely because this is most likely a bug in Google's discovery doc generating tool, which I will try to report.
My discovery doc generates a 'patch' call which isn't directly specified in the api, for the following API method:
I get these two entries in the discover doc:
and
As you can see, the generated patch call doesn't have a parameterName for the request, which results in the following generated retrofit methods:
which doesn't compile because of the null statements.
The proposed solution has the disadvantage that if somebody has a param actually called request (and no parameterName for the body), it will conflict with the default value here. However, I think this is unlikely because this is most likely a bug in Google's discovery doc generating tool, which I will try to report.