how can does the right OpenAPI 3 definition looks like
possible endpoints:
- /tickets (->/tickets?status=* - all Ticket no matter what status)
- /tickets?satus=new
- /tickets?satus=sold
- /tickets?satus=canceled
- /tickets?satus=new,sold
- /tickets?satus=sold,canceled
- /tickets?satus=any_othe_combination
With "enum:" the API only accept ONE parameter, or? Not a combination? Is it simple "value"?
... statusparam:
name: status
in: path
schema:
type: string
value: ['*','new','sold','canceled','some1','some2','some3']
default: '*'
BUT in swagger-ui the value is not checkt - onyl that it exists but i could also use"somethingnotinthelist " - swagger-ui will accept it
Can I use allowEmptyValue: true instead of *
Thanks for help rob