Rebuild Scalatra sample (#7431)

When creating the following PR, sample was generated without reflecting the last change.

https://github.com/swagger-api/swagger-codegen/pull/7393

With this commit, it will be synchronized
This commit is contained in:
magnolia
2018-01-19 17:20:41 +09:00
committed by William Cheng
parent 1ee85de94e
commit 7853308c8e
3 changed files with 18 additions and 4 deletions

View File

@@ -350,7 +350,6 @@ class PetApiAsyncHelper(client: TransportClient, config: SwaggerConfig) extends
val headerParams = new mutable.HashMap[String, String]
if (status == null) throw new Exception("Missing required parameter 'status' when calling PetApi->findPetsByStatus")
queryParams += "status" -> status.toString
val resFuture = client.submit("GET", path, queryParams.toMap, headerParams.toMap, "")
@@ -368,7 +367,6 @@ class PetApiAsyncHelper(client: TransportClient, config: SwaggerConfig) extends
val headerParams = new mutable.HashMap[String, String]
if (tags == null) throw new Exception("Missing required parameter 'tags' when calling PetApi->findPetsByTags")
queryParams += "tags" -> tags.toString
val resFuture = client.submit("GET", path, queryParams.toMap, headerParams.toMap, "")

View File

@@ -7,7 +7,23 @@
</encoder>
</appender>
<root level="warn">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>logFile.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>logFile.%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
</root>
</configuration>

View File

@@ -14,6 +14,6 @@ package io.swagger.server.model
case class ApiResponse(
code: Option[Int],
_type: Option[String],
`type`: Option[String],
message: Option[String]
)