forked from loafle/openapi-generator-original
fixed build error
This commit is contained in:
parent
7ed2df2722
commit
5f61d20610
@ -502,7 +502,7 @@ class ScalaAsyncClientGenerator(cfg: SwaggerGenConfig) extends BasicGenerator {
|
||||
}
|
||||
|
||||
override def toDeclaredType(dt: String): String = {
|
||||
val declaredType = (dt.indexOf("["): @switch) match {
|
||||
val declaredType = (dt.indexOf("[")) match {
|
||||
case -1 => dt
|
||||
case n: Int => {
|
||||
if (dt.substring(0, n).toLowerCase == "array") {
|
||||
@ -537,4 +537,4 @@ class ScalaAsyncClientGenerator(cfg: SwaggerGenConfig) extends BasicGenerator {
|
||||
// escape keywords
|
||||
override def escapeReservedWord(word: String) = "`" + word + "`"
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user