[Swift] Support file upload with Alamofire 1.3.0

refs:

- https://github.com/Alamofire/Alamofire/milestones/1.3.0
- https://github.com/Alamofire/Alamofire/pull/539
This commit is contained in:
Atsushi Nagase
2015-07-23 19:05:25 +09:00
parent 6719a6cc74
commit f98974190e
3 changed files with 38 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ public class SwiftCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("number", "Double");
typeMapping.put("double", "Double");
typeMapping.put("object", "String");
typeMapping.put("file", "NSData");
typeMapping.put("file", "NSURL");
importMapping = new HashMap<String, String>();