forked from loafle/openapi-generator-original
fixed import issue for objc
This commit is contained in:
parent
5a3426dee6
commit
044621b325
@ -115,6 +115,7 @@ class Codegen(config: CodegenConfig) {
|
|||||||
case true =>
|
case true =>
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
allImports --= config.defaultIncludes
|
allImports --= config.defaultIncludes
|
||||||
allImports --= primitives
|
allImports --= primitives
|
||||||
allImports --= containers
|
allImports --= containers
|
||||||
@ -235,11 +236,11 @@ class Codegen(config: CodegenConfig) {
|
|||||||
case n: Int => {
|
case n: Int => {
|
||||||
val ComplexTypeMatcher = "(.*)\\[(.*)\\].*".r
|
val ComplexTypeMatcher = "(.*)\\[(.*)\\].*".r
|
||||||
val ComplexTypeMatcher(container, basePart) = param.dataType
|
val ComplexTypeMatcher(container, basePart) = param.dataType
|
||||||
container + "[" + config.toDeclaredType(basePart) + "]"
|
config.toDeclaredType(container + "[" + config.toDeclaredType(basePart) + "]")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
params += "dataType" -> config.toDeclaredType(u)
|
params += "dataType" -> u
|
||||||
|
|
||||||
param.allowableValues match {
|
param.allowableValues match {
|
||||||
case a: AllowableValues => params += "allowableValues" -> allowableValuesToString(a)
|
case a: AllowableValues => params += "allowableValues" -> allowableValuesToString(a)
|
||||||
@ -424,7 +425,7 @@ class Codegen(config: CodegenConfig) {
|
|||||||
baseType = config.typeMapping.contains(baseType) match {
|
baseType = config.typeMapping.contains(baseType) match {
|
||||||
case true => config.typeMapping(baseType)
|
case true => config.typeMapping(baseType)
|
||||||
case false => {
|
case false => {
|
||||||
imports += Map("import" -> config.toDeclaredType(baseType))
|
// imports += Map("import" -> config.toDeclaredType(baseType))
|
||||||
baseType
|
baseType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user