We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I need to make a call to an API which uses duplicate parameter keys like this:
/api/feed/index?instrumentId=1&instrumentId=2&instrumentId=3
Normally, I'd use requestParameters with URLEncoding.queryString
requestParameters
URLEncoding.queryString
case requestParameters(parameters: [String: Any], encoding: ParameterEncoding)
...but because it's using a dictionary, I can't do:
[ "instrumentId": 1, "instrumentId": 2, "instrumentId": 3, ]
This will result in: Dictionary literal of type '[String : Any]' has duplicate entries for string literal key 'instrumentId'
Dictionary literal of type '[String : Any]' has duplicate entries for string literal key 'instrumentId'
How do I work around this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need to make a call to an API which uses duplicate parameter keys like this:
Normally, I'd use
requestParameters
withURLEncoding.queryString
...but because it's using a dictionary, I can't do:
This will result in:
Dictionary literal of type '[String : Any]' has duplicate entries for string literal key 'instrumentId'
How do I work around this?
The text was updated successfully, but these errors were encountered: