I am trying to define a query parameter in Swagger with comma-separated strings from a predefined set of items like ?fruits=Apples,Oranges,Bananas
but I get the following error from the swagger editor
should NOT have additional properties additionalProperty: style, explode
What I am trying in the Swagger Editor is:
- in: query
name: fruits
style: form
explode: true
required: false
description: Filter by fruits
type: array
items:
type: string
enum:
- Apples
- Oranges
- Bananas