I'm trying to define a schema in openAPI where the value can be one or more from a pre-set list of values. For example, something like below. I know it's invalid but, hopefully, it conveys the idea.
components:
schema:
ingest-rules:
type: string
oneOrMoreOf:
- "rule1, rule2, rule3 rule4, rule5"
Where ingest-rules
is an array of one or more values from the list of possible values. It would be similar to an enum
but where multiple values can be selected.
How can I do this in openAPI v >= 3.0
Thanks.