Merge pull request #3271 from ButterflyNetwork/swift-uuid

[Swift] Add support for NSUUID
This commit is contained in:
wing328
2016-07-19 14:16:45 +08:00
committed by GitHub
6 changed files with 33 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ public class SwiftCodegen extends DefaultCodegen implements CodegenConfig {
Arrays.asList(
"NSDate",
"NSURL", // for file
"NSUUID",
"Array",
"Dictionary",
"Set",
@@ -131,6 +132,7 @@ public class SwiftCodegen extends DefaultCodegen implements CodegenConfig {
// mapped to String as a workaround
typeMapping.put("binary", "String");
typeMapping.put("ByteArray", "String");
typeMapping.put("UUID", "NSUUID");
importMapping = new HashMap<String, String>();