Notice that if one wants to make the API call without any query parameters (which is valid, since none of them is required), they need to call the method like .getItems({}), i. e. pass an empty object to the args parameter. It works but could be prettier. :smile:
Proposal: If all of args's properties are optional, so should be the parameter itself, e. g. by having an empty object as its default value:
Please examine the following example.
Chunk of input swagger-file:
Corresponding chunk of output API client interface:
Notice that if one wants to make the API call without any query parameters (which is valid, since none of them is
required
), they need to call the method like.getItems({})
, i. e. pass an empty object to theargs
parameter. It works but could be prettier. :smile:Proposal: If all of
args
's properties are optional, so should be the parameter itself, e. g. by having an empty object as its default value: