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
return URLQueryItem(name: element.key, value: element.value as? String)
This allows to pass string params only. But if you replace element.value as? String with \(element.value) it will accept for example int and bool values too.
Additionally NetworkDispatcher is protected from inheritance and I should create a copy of it
The text was updated successfully, but these errors were encountered:
That's neither a but nor an issue.. Please refer to URLQueryItem you'll notice that value property must be an optional string . which make sense, since all query params treated usually as Strings not any primitive type.
return URLQueryItem(name: element.key, value: element.value as? String)
This allows to pass string params only. But if you replace
element.value as? String
with\(element.value)
it will accept for example int and bool values too.Additionally
NetworkDispatcher
is protected from inheritance and I should create a copy of itThe text was updated successfully, but these errors were encountered: