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
There are some optimisations we could make here, a bit one would be not generating empty request / response objects, and generating methods with no parameters.
e.g. instead of generating
class EmptyVerbRequest{}
interface VerbClient {
void call (EmptyVerbRequest req);
}
We could just generate:
interface VerbClient {
void call ();
}
We need to make sure that adding additional optional parameters to the schema does not break compilation though, so if we are doing this optimisation we also need to allow for generating both methods if the request object only has optional params, e.g.:
There are some optimisations we could make here, a bit one would be not generating empty request / response objects, and generating methods with no parameters.
e.g. instead of generating
We could just generate:
We need to make sure that adding additional optional parameters to the schema does not break compilation though, so if we are doing this optimisation we also need to allow for generating both methods if the request object only has optional params, e.g.:
This means that if the empty body is ever expanded with an optional parameter existing code will continue to work.
The text was updated successfully, but these errors were encountered: