Array<Long> is not supported in query parameters
See original GitHub issueThe following swagger definition:
/WTF:
get:
operationId: "wtf"
produces:
- "application/json"
parameters:
- name: "id"
in: "query"
required: false
type: "array"
items:
type: "integer"
format: "int64"
collectionFormat: "multi"
responses:
200:
description: "successful operation"
generates a method with Iterable[String]
input parameters instead of Iterable[Long]
:
def wtf(respond: Resource.wtfResponse.type)(id: Option[Iterable[String]] = None): scala.concurrent.Future[Resource.wtfResponse]
the expected result is:
def wtf(respond: Resource.wtfResponse.type)(id: Option[Iterable[Long]] = None): scala.concurrent.Future[Resource.wtfResponse]
To quickly mitigate the issue, I wanted to implement it with String and parse long by myself, but: https://github.com/twilio/guardrail/issues/184
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
java - REST GET Call with List Query Param is not working in ...
i belive you will get answer by reading this Is array syntax using square brackets in URL query strings valid?
Read more >using $X in the query, Parameter type not supporte
I set up the parameter REGION with class type of: java.util.Collection The error in iReport says that "Parameter type not supported in query...
Read more >Arrays in query params - Medium
If a client requests a restricted set of fields for a given resource type, an endpoint MUST NOT include additional fields in resource...
Read more >Dynamic M query parameters in Power BI Desktop
With Dynamic M Query Parameters, model authors can let report viewers use filters or slicers to set the value(s) for an M Query...
Read more ><value> uses query parameters which are not supported for ...
Query layers with parameters are not supported when sharing web feature layers. The <value> parameter refers to the layer name. Solutions. Do one...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@blast-hardcheese seems like this still happens in
0.45.1
will try to look at your suggestion when I get some time.Pardon for the delay here, this is now resolved.