1 | initial version |
To include a string array in the query parameters of a Swagger documentation, you can use the following YAML code:
parameters:
- in: query
name: string_array_param
schema:
type: array
items:
type: string
This code defines a parameter named string_array_param
that is included in the query string. The schema
property defines that this parameter is an array
and its items
are of type string
.
You can modify the example above to match your specific needs.