{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1622","repository_url":"https://api.github.com/repos/Alamofire/Alamofire","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1622/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1622/events","html_url":"https://github.com/Alamofire/Alamofire/issues/1622","id":179220706,"number":1622,"title":"Parameters getting an optional prefix","user":{"login":"puhgeh","id":5802406,"avatar_url":"https://avatars.githubusercontent.com/u/5802406?v=3","gravatar_id":"","url":"https://api.github.com/users/puhgeh","html_url":"https://github.com/puhgeh","followers_url":"https://api.github.com/users/puhgeh/followers","following_url":"https://api.github.com/users/puhgeh/following{/other_user}","gists_url":"https://api.github.com/users/puhgeh/gists{/gist_id}","starred_url":"https://api.github.com/users/puhgeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puhgeh/subscriptions","organizations_url":"https://api.github.com/users/puhgeh/orgs","repos_url":"https://api.github.com/users/puhgeh/repos","events_url":"https://api.github.com/users/puhgeh/events{/privacy}","received_events_url":"https://api.github.com/users/puhgeh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Alamofire/Alamofire/labels/question","name":"question","color":"FF7E00"}],"state":"closed","locked":false,"assignee":{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false},"assignees":[{"login":"cnoon","id":169110,"avatar_url":"https://avatars.githubusercontent.com/u/169110?v=3","gravatar_id":"","url":"https://api.github.com/users/cnoon","html_url":"https://github.com/cnoon","followers_url":"https://api.github.com/users/cnoon/followers","following_url":"https://api.github.com/users/cnoon/following{/other_user}","gists_url":"https://api.github.com/users/cnoon/gists{/gist_id}","starred_url":"https://api.github.com/users/cnoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnoon/subscriptions","organizations_url":"https://api.github.com/users/cnoon/orgs","repos_url":"https://api.github.com/users/cnoon/repos","events_url":"https://api.github.com/users/cnoon/events{/privacy}","received_events_url":"https://api.github.com/users/cnoon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-26T12:55:33Z","updated_at":"2016-09-28T14:55:52Z","closed_at":"2016-09-27T14:31:42Z","body":"Hi,\r\n\r\nWhy does the parameters being sent over gets an optional prefix? The parameters being passed in the request are not optional so why is it being converted and even being sent with unwrapped value (with optional prefix). Any solution on this?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/250191479","html_url":"https://github.com/Alamofire/Alamofire/issues/1622#issuecomment-250191479","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1622","id":250191479,"user":{"login":"jshier","id":51020,"avatar_url":"https://avatars.githubusercontent.com/u/51020?v=3","gravatar_id":"","url":"https://api.github.com/users/jshier","html_url":"https://github.com/jshier","followers_url":"https://api.github.com/users/jshier/followers","following_url":"https://api.github.com/users/jshier/following{/other_user}","gists_url":"https://api.github.com/users/jshier/gists{/gist_id}","starred_url":"https://api.github.com/users/jshier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshier/subscriptions","organizations_url":"https://api.github.com/users/jshier/orgs","repos_url":"https://api.github.com/users/jshier/repos","events_url":"https://api.github.com/users/jshier/events{/privacy}","received_events_url":"https://api.github.com/users/jshier/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T14:55:52Z","updated_at":"2016-09-28T14:55:52Z","body":"Actually, the values are probably being passed through string interpolation when being added as parameters, as the `Parameters` type of `[String : Any]` won't accept optional values. @puhgeh Don't run your parameter values through string interpolation just to make them non-optional values, you need to actually unwrap them like @cnoon said."}}
{"actor":{"display_login":"jshier"}}