For my API I'm making a meta annotation for handling Pagable parameters and for it I need to annotate a list of strings as a parameter that will show up in Swagger UI.
import io.swagger.v3.oas.annotations.Parameter;
@Parameter(name = "sort", in = ParameterIn.QUERY, schema = @Schema(implementation = String.class, type = "query"))
public @interface PageableQueryParameters {}
In order to sort by multiple criteria in Spring's Pageable the sort parameter needs to be provided as a list of strings. Unfortunately I don't know how to declare the sort parameter as a list.
How can I document a list of strings using Swagger's OpenAPI 3 annotations?