[api-client] array params methods should use append instead of set #31
Labels
enhancement
Request for a change or improvement of existing functionality
help wanted
This issue is open for contributions in form of PR or specification
here is an example swagger parameter definition:
and here is what gets generated for that parameter
The filters array ends up being joined with commas.
What should happen:
The generated code for the param should look more like this:
This is unfortunately arguable since apparently there is not a clear standard. However multiple params with the same name is the most and reliable approach AFAIK so it should probably be used.
The functionality could be hidden behind a flag for backwards compatibility i.e. it uses
set
by default butappend
if--append-array-params
is supplied during generation.The text was updated successfully, but these errors were encountered: