You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
&openapi3filter.RequestValidationInput doesn't support using urls that have arrays in their query. For example something.com?ids=1 works but something.com?ids=1,2,3 doesn't work. Also putting parentheses or brackets doesn't help.
This is the exact reported error http request is not valid: parameter "ids" in query has an error: path 0: value [1,2]: an invalid integer: strconv.ParseFloat: parsing "[1,2]": invalid syntax
The fix is very simple all you have to do is something like this strings.Split(strings.Trim(r.URL.Query().Get("ids"), ""), ",")
The text was updated successfully, but these errors were encountered:
&openapi3filter.RequestValidationInput
doesn't support using urls that have arrays in their query. For examplesomething.com?ids=1
works butsomething.com?ids=1,2,3
doesn't work. Also putting parentheses or brackets doesn't help.This is the exact reported error
http request is not valid: parameter "ids" in query has an error: path 0: value [1,2]: an invalid integer: strconv.ParseFloat: parsing "[1,2]": invalid syntax
The fix is very simple all you have to do is something like this
strings.Split(strings.Trim(r.URL.Query().Get("ids"), ""), ",")
The text was updated successfully, but these errors were encountered: