-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
Describe the bug
When generating the OpenAPI document, a lot of query parameters gets generated for the find queries. Most parameters are of the form _<operator> like _ne and _lt. However the equality operator gets generated as a single equals symbol, like =.
This messes up some client code generators, specially outside javascript world.
The behavior of this when issuing the query is that a url like http://.../restaurant?==test gets generated, and even when it works properly, it seems confusing to me.
Steps to reproduce the behavior
- Enable
documentationplugin - Generate the swagger document
- Open the documentation page in any of the GET / operations
- Check that there is a parameter with name
=
Expected behavior
For consistency and compatibility reasons, the equality operator should be named _eq
System
- Node.js version: 14.5.0
- NPM version: 6.14.5
- Yarn version: 1.22.4
- Strapi version: 3.1.1
- Database: sqlite
- Operating system: Windows 10
** Additional Context **
I know solving this might pose a Breaking Change, and it is not a bug, but a consistency issue.
Thanks for this marvel of a project!
