question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Array<Long> is not supported in query parameters

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rtfpessoacommented, Mar 27, 2019

@blast-hardcheese seems like this still happens in 0.45.1 will try to look at your suggestion when I get some time.

0reactions
blast-hardcheesecommented, May 26, 2022

Pardon for the delay here, this is now resolved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found