Optional args
if no query param is required
#69
Labels
enhancement
Request for a change or improvement of existing functionality
Milestone
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. 😄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:The text was updated successfully, but these errors were encountered: