fix the scalatra sample

This commit is contained in:
Ivan Porto Carrero 2012-09-20 23:38:47 -07:00
parent 256e746364
commit d6cf7fc9aa

View File

@ -16,7 +16,7 @@ class {{className}} (implicit val swagger: Swagger) extends ScalatraServlet with
protected implicit val jsonFormats: Formats = DefaultFormats protected implicit val jsonFormats: Formats = DefaultFormats
protected val applicationDescription: String = "{{className}}" protected val applicationDescription: String = "{{className}}"
override protected val applicationName: String = Some("{{name}}") override protected val applicationName: Option[String] = Some("{{name}}")
def swaggerToModel(cls: Class[_]) = { def swaggerToModel(cls: Class[_]) = {
val docObj = ApiPropertiesReader.read(cls) val docObj = ApiPropertiesReader.read(cls)