Skip to content

Support array query parameters #16

@Ashraf-Ali-aa

Description

@Ashraf-Ali-aa

Hi @devlikepro, thanks for a great plugin. I was wondering if you could please add support for array parameters? Currently, in the UI, the text fields are not displayed. I could add it myself if I get some pointers on where the changes can be made.

Image
"parameters": [
          {
            "name": "sw_corner[]",
            "in": "query",
            "required": true,
            "description": "Southwest corner coordinates [latitude, longitude]",
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "style": "form",
            "explode": true,
            "example": [53.500403, -2.276471]
          },
          {
            "name": "ne_corner[]",
            "in": "query",
            "required": true,
            "description": "Northeast corner coordinates [latitude, longitude]",
            "schema": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 2,
              "maxItems": 2
            },
            "style": "form",
            "explode": true,
            "example": [53.521749, -2.259879]
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Maximum number of locations to return"
          }
        ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions