File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/scala/com/wordnik/swagger/codegen Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ class Codegen(config: CodegenConfig) {
115
115
case true =>
116
116
}
117
117
})
118
+
118
119
allImports --= config.defaultIncludes
119
120
allImports --= primitives
120
121
allImports --= containers
@@ -235,11 +236,11 @@ class Codegen(config: CodegenConfig) {
235
236
case n : Int => {
236
237
val ComplexTypeMatcher = " (.*)\\ [(.*)\\ ].*" .r
237
238
val ComplexTypeMatcher (container, basePart) = param.dataType
238
- container + " [" + config.toDeclaredType(basePart) + " ]"
239
+ config.toDeclaredType( container + " [" + config.toDeclaredType(basePart) + " ]" )
239
240
}
240
241
}
241
242
242
- params += " dataType" -> config.toDeclaredType(u)
243
+ params += " dataType" -> u
243
244
244
245
param.allowableValues match {
245
246
case a : AllowableValues => params += " allowableValues" -> allowableValuesToString(a)
@@ -424,7 +425,7 @@ class Codegen(config: CodegenConfig) {
424
425
baseType = config.typeMapping.contains(baseType) match {
425
426
case true => config.typeMapping(baseType)
426
427
case false => {
427
- imports += Map (" import" -> config.toDeclaredType(baseType))
428
+ // imports += Map("import" -> config.toDeclaredType(baseType))
428
429
baseType
429
430
}
430
431
}
You can’t perform that action at this time.
0 commit comments