forked from loafle/openapi-generator-original
add "Data" as reserved word in swift 2.x, 4.x
This commit is contained in:
parent
f5591232fc
commit
4a8d9c3509
3
.gitignore
vendored
3
.gitignore
vendored
@ -165,3 +165,6 @@ samples/client/petstore/typescript-aurelia/**/dist/
|
||||
# aspnetcore
|
||||
samples/server/petstore/aspnetcore/.vs/
|
||||
effective.pom
|
||||
|
||||
# kotlin
|
||||
samples/client/petstore/kotlin/src/main/kotlin/test/
|
||||
|
@ -125,7 +125,7 @@ public class Swift4Codegen extends DefaultCodegen implements CodegenConfig {
|
||||
"true", "lazy", "operator", "in", "COLUMN", "left", "private", "return", "FILE", "mutating", "protocol",
|
||||
"switch", "FUNCTION", "none", "public", "where", "LINE", "nonmutating", "static", "while", "optional",
|
||||
"struct", "override", "subscript", "postfix", "typealias", "precedence", "var", "prefix", "Protocol",
|
||||
"required", "right", "set", "Type", "unowned", "weak", "Codable", "Encodable", "Decodable")
|
||||
"required", "right", "set", "Type", "unowned", "weak", "Data", "Codable", "Encodable", "Decodable")
|
||||
);
|
||||
|
||||
typeMapping = new HashMap<>();
|
||||
|
@ -112,7 +112,7 @@ public class SwiftCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
"true", "lazy", "operator", "in", "COLUMN", "left", "private", "return", "FILE", "mutating", "protocol",
|
||||
"switch", "FUNCTION", "none", "public", "where", "LINE", "nonmutating", "static", "while", "optional",
|
||||
"struct", "override", "subscript", "postfix", "typealias", "precedence", "var", "prefix", "Protocol",
|
||||
"required", "right", "set", "Type", "unowned", "weak")
|
||||
"required", "right", "set", "Type", "unowned", "weak", "Data")
|
||||
);
|
||||
|
||||
typeMapping = new HashMap<String, String>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user