-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Issue with loopback controller @param.array #6750
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
Comments
Having the same issue as @nflaig in #5793 (comment) My code is like this
When I only add one element to the string array the following error is displayed
The url that is being sended looks like this
|
?numberArray=123
then it throws the error with the code INVALID_PARAMETER_VALUE
and in details with the message should be array
, however ?numberArray=123&numberArray=12345
works just fine.
Thanks for raising the issue. However, the specific issue you are referring has been resolved by this pull request |
@Ricardope3 I created an issue for this and it was fixed by @mrmodise. A new version of |
Closing as resolved. Thanks! |
There is another issue I noticed that if you only pass one value e.g.
?numberArray=123
then it throws the error with the codeINVALID_PARAMETER_VALUE
and in details with the messageshould be array
, however?numberArray=123&numberArray=12345
works just fine.I also noticed that
?numberArray[]=123
works but thats different from how it used to work and also is not how the api explorer sends the values.Seems like there is a general issue with the
@param.array
with parameter locationquery
Originally posted by @nflaig in #5793 (comment)
The text was updated successfully, but these errors were encountered: