-
-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is a propertyName with suffix [] added to search filter when match type is exact? #1985
Comments
I think the documentation about the support for multiple values was lost somewhere along the way... But basically, you could do for example:
The effect is equivalent to the SQL |
Or perhaps it was never properly documented? But it's been around for a long time: #500 (comment) 😆 |
@teohhanhui Thanks for your answer (and sorry for my late reply 😋 ), it does make sense to be able to send in multiple values 👍 . The swagger definition now contains the two definitions for the same parameter as well, where they are both the same scalar type. If a client is generated this give a pretty weird method signature (i.m.o). Your example would become getBooks(String author1, String author2); i would expect a signature getBooks(String author, List authors), but if multiple values are allowed why not just use the list getBooks(List authors) since they are filtering the same field it would make sense.
|
We must fix our Swagger generator to use We'll need to document both parameter
Would be nice. |
Closed in favor of: api-platform/docs#601 |
core/src/Bridge/Doctrine/Orm/Filter/SearchFilter.php
Line 105 in e0e639e
Can anyone explain me why a new property-name with suffix
[]
is added to the list of property descriptions when the match-type isexact
(or when matching an association? Probably i am missing something very obvious here, but i could not deduct this from the existing documentation 🔢The text was updated successfully, but these errors were encountered: