forked from loafle/openapi-generator-original
removed overridden methods
This commit is contained in:
parent
f85c06628b
commit
c3b36c6944
@ -21,9 +21,17 @@ import com.wordnik.swagger.core._
|
|||||||
import scala.collection.mutable.{ HashMap, HashSet }
|
import scala.collection.mutable.{ HashMap, HashSet }
|
||||||
|
|
||||||
abstract class CodegenConfig {
|
abstract class CodegenConfig {
|
||||||
|
/*
|
||||||
|
* abstract methods
|
||||||
|
*/
|
||||||
def packageName: String
|
def packageName: String
|
||||||
def templateDir: String
|
def templateDir: String
|
||||||
def destinationDir: String
|
def destinationDir: String
|
||||||
|
def toApiName(name: String): String
|
||||||
|
def apiNameFromPath(apiPath: String): String
|
||||||
|
def processApiMap(m: Map[String, AnyRef]): Map[String, AnyRef] = m
|
||||||
|
def processModelMap(m: Map[String, AnyRef]): Map[String, AnyRef] = m
|
||||||
|
|
||||||
val apiTemplateFiles = new HashMap[String, String]()
|
val apiTemplateFiles = new HashMap[String, String]()
|
||||||
val modelTemplateFiles = new HashMap[String, String]()
|
val modelTemplateFiles = new HashMap[String, String]()
|
||||||
|
|
||||||
@ -42,9 +50,6 @@ abstract class CodegenConfig {
|
|||||||
def importMapping: Map[String, String] = Map()
|
def importMapping: Map[String, String] = Map()
|
||||||
def escapeReservedWord(word: String) = word
|
def escapeReservedWord(word: String) = word
|
||||||
|
|
||||||
def toApiName(name: String): String
|
|
||||||
def apiNameFromPath(apiPath: String): String
|
|
||||||
|
|
||||||
// only process these apis (by name)
|
// only process these apis (by name)
|
||||||
val apisToProcess = new HashSet[String]
|
val apisToProcess = new HashSet[String]
|
||||||
|
|
||||||
@ -133,7 +138,4 @@ abstract class CodegenConfig {
|
|||||||
case _ => "_"
|
case _ => "_"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def processApiMap(m: Map[String, AnyRef]): Map[String, AnyRef]
|
|
||||||
def processModelMap(m: Map[String, AnyRef]): Map[String, AnyRef]
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user