Skip to content

Is there a way to name [] in parameters? #234

Closed
@lion-man44

Description

@lion-man44

This is a question.
Is there "proper" way to output this format?

      parameters:
      - name: 'user_ids[]' << this one
        in: query
        required: false
        schema:
          type: array
          items:
            type: string

Our front generate type.d.ts using this openapi file, and rails way is allowed by this user_ids[]=1&user_ids[]=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions