Closed tobyworks closed 6 months ago
I have a call that expect a list of strings as a query parameter, as following:
endpoint?v=abc&v=xyz
but i can't define it as:
request{ queryParameter("v", List<String>::class) }
i can only define it as:
request{ queryParameter("v",List::class) }
but then the swagger docs expects a array [object] however im looking for a array[String]
array [object]
array[String]
Hi,
you can specify types as generic type parameters. So writing it like this
queryParameter<List<String>>("v")
should solve your problem
I have a call that expect a list of strings as a query parameter, as following:
but i can't define it as:
i can only define it as:
but then the swagger docs expects a
array [object]
however im looking for aarray[String]