mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-08 08:30:56 +00:00
added invoker param
This commit is contained in:
parent
5f81594f03
commit
52a9195411
@ -21,7 +21,8 @@ import com.wordnik.swagger.core._
|
||||
object ScalaPetstoreCodegen extends BasicScalaGenerator {
|
||||
def main(args: Array[String]) = generateClient(args)
|
||||
|
||||
override def packageName = "com.wordnik.petstore"
|
||||
// package for api invoker, error files
|
||||
override def invokerPackage: Option[String] = Some("com.wordnik.client")
|
||||
|
||||
// where to write generated code
|
||||
override def destinationDir = "samples/petstore/scala/src/main/scala"
|
||||
|
@ -39,6 +39,9 @@ class BasicScalaGenerator extends BasicGenerator {
|
||||
"double" -> "Double",
|
||||
"object" -> "Any")
|
||||
|
||||
// package for api invoker, error files
|
||||
override def invokerPackage: Option[String] = Some("com.wordnik.client")
|
||||
|
||||
// template used for models
|
||||
modelTemplateFiles += "model.mustache" -> ".scala"
|
||||
|
||||
|
@ -142,7 +142,7 @@ class Codegen(config: CodegenConfig) {
|
||||
|
||||
val engine = engineData._1
|
||||
val template = engineData._2
|
||||
|
||||
|
||||
var data = Map[String, AnyRef](
|
||||
"package" -> bundle("package"),
|
||||
"invokerPackage" -> bundle("invokerPackage"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user