I've stuck with a problem I didn't imagine could happen. I need to make a post request for the third-party API which allows only this
let parameters: Parameters = [{
"id": "1",
"original-address": "Some city, Some street"}]
As you can see it is not a dictionary, so compiler says Cannot convert value of type '[() -> String]' to specified type 'Parameters' (aka 'Dictionary<String, Any>')
I could not remove the brackets because my 3rd party API will not respond to this request.
How can I send such a request with Alamofire?
I've tried some suggestions from our beloved Stackoverflow, but still no luck.