Skip to content

Commit 044621b

Browse files
committed
fixed import issue for objc
1 parent 5a3426d commit 044621b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/scala/com/wordnik/swagger/codegen/Codegen.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class Codegen(config: CodegenConfig) {
115115
case true =>
116116
}
117117
})
118+
118119
allImports --= config.defaultIncludes
119120
allImports --= primitives
120121
allImports --= containers
@@ -235,11 +236,11 @@ class Codegen(config: CodegenConfig) {
235236
case n: Int => {
236237
val ComplexTypeMatcher = "(.*)\\[(.*)\\].*".r
237238
val ComplexTypeMatcher(container, basePart) = param.dataType
238-
container + "[" + config.toDeclaredType(basePart) + "]"
239+
config.toDeclaredType(container + "[" + config.toDeclaredType(basePart) + "]")
239240
}
240241
}
241242

242-
params += "dataType" -> config.toDeclaredType(u)
243+
params += "dataType" -> u
243244

244245
param.allowableValues match {
245246
case a: AllowableValues => params += "allowableValues" -> allowableValuesToString(a)
@@ -424,7 +425,7 @@ class Codegen(config: CodegenConfig) {
424425
baseType = config.typeMapping.contains(baseType) match {
425426
case true => config.typeMapping(baseType)
426427
case false => {
427-
imports += Map("import" -> config.toDeclaredType(baseType))
428+
// imports += Map("import" -> config.toDeclaredType(baseType))
428429
baseType
429430
}
430431
}

0 commit comments

Comments
 (0)