I have a parameter that a list of Strings, but the values must belong from a set of values.
This is what I have tried
@Parameter(description = "The type of status filters", content = @Content(array = @ArraySchema(schema = @Schema(implementation = String.class, allowableValues = {"Option 1", "Option 2", "Option 3"}))))
As you can see, there is a text field.
I would like to have a drop-down instead.
Any suggestions on how to do it?
Solved by removing the implementation
part
@Parameter(description = "The type of status filters", content = @Content(array = @ArraySchema(schema = @Schema(allowableValues = {"Option 1", "Option 2", "Option 3"}))))