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 type in query param

See original GitHub issue

There is a problem with rendering textarea for input multiple params. With 2.2.6 it was working.

zrzut ekranu z 2017-04-10 11-41-13

Parameter definition: {"name":"name","in":"query","required":true,"type":"array","items":{"type":"string"},"collectionFormat":"multi"}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
wwatrobacommented, Apr 10, 2017
{
  "swagger":"2.0",
  "basePath":"/v1",
  "paths":{
    "/test":{
      "get":{
        "summary":"Lists",
        "description":"",
        "operationId":"getIds",
        "produces":[
          "application/json"
        ],
        "parameters":[
          {
            "name":"name",
            "in":"query",
            "required":true,
            "type":"array",
            "items":{
              "type":"string"
            },
            "collectionFormat":"multi"
          }
        ],
        "responses":{
          "200":{
            "description":"successful operation",
            "schema":{
              "$ref":"#/definitions/GetResponse"
            }
          }
        },
        "security":[
          {
            "apiKey":[

            ]
          }
        ]
      }
    }
  },
  "securityDefinitions":{
    "apiKey":{
      "description":"",
      "type":"apiKey",
      "name":"apiKey",
      "in":"query"
    }
  },
  "definitions":{
    "GetResponse":{
      "type":"object",
      "properties":{
        "name":{
          "type":"string"
        }
      },
      "xml":{
        "name":"GetResponse"
      }
    }
  }
}
0reactions
webroncommented, Apr 23, 2017

It’s deployed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to pass an array within a query string? - Stack Overflow
To be clear, I have a query string with multiple values, one of which would be an array value. I want that query...
Read more >
Arrays in query params - Medium
A client MAY request that an endpoint return only specific fields in the response on a per-type basis by including a fields[TYPE] parameter....
Read more >
Fun stuff: representing arrays and objects in query strings
Decoding a query string into an array is done with parse_str. ... It serializes the following types of values passed in obj: <string> ......
Read more >
Use the Query String to pass an array of selected values ...
You can pass data, including arrays via the Query String when using NavigationManager to navigate to a different page in your Blazor app....
Read more >
query parameters of array type - MuleSoft Help Center
If a query parameter declaration specifies an array type for the value of the query parameter, processors MUST allow multiple instances of that...
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