{"action":"created","issue":{"url":"https://api.github.com/repos/Moya/Moya/issues/114","labels_url":"https://api.github.com/repos/Moya/Moya/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/Moya/Moya/issues/114/comments","events_url":"https://api.github.com/repos/Moya/Moya/issues/114/events","html_url":"https://github.com/Moya/Moya/issues/114","id":70722058,"number":114,"title":"Implement uploading of multpart/form-data","user":{"login":"ptiz","id":6815271,"avatar_url":"https://avatars.githubusercontent.com/u/6815271?v=3","gravatar_id":"","url":"https://api.github.com/users/ptiz","html_url":"https://github.com/ptiz","followers_url":"https://api.github.com/users/ptiz/followers","following_url":"https://api.github.com/users/ptiz/following{/other_user}","gists_url":"https://api.github.com/users/ptiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ptiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptiz/subscriptions","organizations_url":"https://api.github.com/users/ptiz/orgs","repos_url":"https://api.github.com/users/ptiz/repos","events_url":"https://api.github.com/users/ptiz/events{/privacy}","received_events_url":"https://api.github.com/users/ptiz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Moya/Moya/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Moya/Moya/milestones/4","html_url":"https://github.com/Moya/Moya/milestones/5.0.0","labels_url":"https://api.github.com/repos/Moya/Moya/milestones/4/labels","id":1411806,"number":4,"title":"5.0.0","description":"Per https://github.com/Moya/Moya/pull/289, master now contains breaking changes and thus justifies a new major version number. I believe these changes are beneficial but should be carefully considered && released ASAP. Any other breaking API changes we should sneak in *nao* while the version number is being cut.","creator":{"login":"swizzlr","id":1848665,"avatar_url":"https://avatars.githubusercontent.com/u/1848665?v=3","gravatar_id":"","url":"https://api.github.com/users/swizzlr","html_url":"https://github.com/swizzlr","followers_url":"https://api.github.com/users/swizzlr/followers","following_url":"https://api.github.com/users/swizzlr/following{/other_user}","gists_url":"https://api.github.com/users/swizzlr/gists{/gist_id}","starred_url":"https://api.github.com/users/swizzlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swizzlr/subscriptions","organizations_url":"https://api.github.com/users/swizzlr/orgs","repos_url":"https://api.github.com/users/swizzlr/repos","events_url":"https://api.github.com/users/swizzlr/events{/privacy}","received_events_url":"https://api.github.com/users/swizzlr/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2015-11-14T19:39:17Z","updated_at":"2015-11-16T14:56:05Z","due_on":null,"closed_at":null},"comments":24,"created_at":"2015-04-24T15:40:01Z","updated_at":"2015-11-16T22:49:09Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/Moya/Moya/issues/comments/157198695","html_url":"https://github.com/Moya/Moya/issues/114#issuecomment-157198695","issue_url":"https://api.github.com/repos/Moya/Moya/issues/114","id":157198695,"user":{"login":"JRHeaton","id":159331,"avatar_url":"https://avatars.githubusercontent.com/u/159331?v=3","gravatar_id":"","url":"https://api.github.com/users/JRHeaton","html_url":"https://github.com/JRHeaton","followers_url":"https://api.github.com/users/JRHeaton/followers","following_url":"https://api.github.com/users/JRHeaton/following{/other_user}","gists_url":"https://api.github.com/users/JRHeaton/gists{/gist_id}","starred_url":"https://api.github.com/users/JRHeaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JRHeaton/subscriptions","organizations_url":"https://api.github.com/users/JRHeaton/orgs","repos_url":"https://api.github.com/users/JRHeaton/repos","events_url":"https://api.github.com/users/JRHeaton/events{/privacy}","received_events_url":"https://api.github.com/users/JRHeaton/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T22:49:09Z","updated_at":"2015-11-16T22:49:09Z","body":"@ashfurrow Yeah, that is what I demonstrated above in the extension, but saw potential confusion with. Since the entire enum type must conform to `MultipartFormUploadable`, there's no way to determine whether a specific enum case should be able to be used for a multipart upload or not. This means it's not \"perfectly strict\" in that it can't warn or error if you try to misuse it in this way (misuse meaning call the overloaded version of `request()` in the extension with a data provider). If you do so, you're stuck waiting potentially for the server to WTF at you for trying to upload data to a POST endpoint that doesn't take it, if that will even happen. In short, there's something that we know would at compile time, but can't enforce with the compiler in any way that I can think of, at least with targets as enum types."}}