php-crud-api
php-crud-api copied to clipboard
Support for "filterX or groups" on OpenApi
As far as I see V2 also supports "or filter groups" via parameter filterX but OpenApi currently displays V1 like "filter" possibility.
Would it be possible to implement V2 filterX groups on OpenAPI as an enhancement?
I see two possible ways:
- Add filter1, filter2 ... besides standard "filter" generated API and describe on docs how to use,
- Implement OpenAPI free-form query parameter
I would be happy to implement - but which should be the preferred? Or should be this feature discarded in upstream? Or did I miss something and there is already a way on OpenApi to specify these groups?
Thank you for reaching out.
Would it be possible to implement V2 filterX groups on OpenAPI as an enhancement?
I don't think OAS supports such structures.
I would be happy to implement
That is great!
- but which should be the preferred?
I think the "OpenAPI free-form query parameter" is not suitable as it is way too "free".
So I feel "adding filter1, filter2, besides standard filter" is the best option.
But I'm afraid that when you add all options it will be too verbose.
Or should be this feature discarded in upstream?
What do you mean by that?
Or did I miss something and there is already a way on OpenApi to specify these groups?
Not that I'm aware of.