@@ -81,12 +81,12 @@ class Codegen(config: CodegenConfig) {
81
81
lb
82
82
})
83
83
opList += apiToMap(apiPath, operation)
84
-
84
+
85
85
CoreUtils .extractModelNames(operation).foreach(i => allImports += i)
86
86
}
87
87
})
88
88
}
89
-
89
+
90
90
case None =>
91
91
}
92
92
@@ -223,14 +223,14 @@ class Codegen(config: CodegenConfig) {
223
223
var paramList = new ListBuffer [HashMap [String , AnyRef ]]
224
224
var errorList = new ListBuffer [HashMap [String , AnyRef ]]
225
225
var bodyParamRequired : Option [String ] = Some (" true" )
226
-
226
+
227
227
if (operation.responseMessages != null ) {
228
- operation.responseMessages.foreach(param => {
228
+ operation.responseMessages.foreach(param => {
229
229
val params = new HashMap [String , AnyRef ]
230
230
params += " code" -> param.code.toString()
231
231
params += " reason" -> param.message
232
232
params += " hasMore" -> " true"
233
- errorList += params
233
+ errorList += params
234
234
})
235
235
}
236
236
@@ -509,7 +509,7 @@ class Codegen(config: CodegenConfig) {
509
509
" defaultValue" -> config.toDeclaration(propertyDocSchema)._2,
510
510
" description" -> propertyDocSchema.description,
511
511
" notes" -> propertyDocSchema.description,
512
- " allowableValues" -> rawAllowableValuesToString(propertyDocSchema.allowableValues),
512
+ " allowableValues" -> rawAllowableValuesToString(propertyDocSchema.allowableValues),
513
513
(if (propertyDocSchema.required) " required" else " isNotRequired" ) -> " true" ,
514
514
" getter" -> config.toGetter(prop._1, config.toDeclaration(propertyDocSchema)._1),
515
515
" setter" -> config.toSetter(prop._1, config.toDeclaration(propertyDocSchema)._1),
@@ -567,7 +567,7 @@ class Codegen(config: CodegenConfig) {
567
567
" className" -> config.toApiName(a._1._2),
568
568
" basePath" -> a._1._1,
569
569
" operations" -> {
570
- (for (t <- a._2) yield { Map (" operation" -> t._2 , " path" -> t._1) }).toList
570
+ (for (t <- a._2) yield { Map (" operation" -> apiToMap(t._1, t._2) , " path" -> t._1) }).toList
571
571
})
572
572
})
573
573
0 commit comments