mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
Allow for UUID types in akka-scala (#5069)
* allow for UUID types * update sample libs
This commit is contained in:
parent
bbe3fd4c71
commit
b2aa877ce0
@ -8,6 +8,7 @@ package {{package}}
|
|||||||
|
|
||||||
import {{invokerPackage}}.ApiModel
|
import {{invokerPackage}}.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
|
@ -217,7 +217,7 @@
|
|||||||
<akka-version>2.3.9</akka-version>
|
<akka-version>2.3.9</akka-version>
|
||||||
<joda-version>1.2</joda-version>
|
<joda-version>1.2</joda-version>
|
||||||
<joda-time-version>2.2</joda-time-version>
|
<joda-time-version>2.2</joda-time-version>
|
||||||
<swagger-core-version>1.5.9</swagger-core-version>
|
<swagger-core-version>1.5.12</swagger-core-version>
|
||||||
<maven-plugin.version>1.0.0</maven-plugin.version>
|
<maven-plugin.version>1.0.0</maven-plugin.version>
|
||||||
|
|
||||||
<junit-version>4.8.1</junit-version>
|
<junit-version>4.8.1</junit-version>
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.swagger.client.api
|
package io.swagger.client.api
|
||||||
|
|
||||||
import io.swagger.client.model.Pet
|
|
||||||
import io.swagger.client.model.ApiResponse
|
import io.swagger.client.model.ApiResponse
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
import io.swagger.client.model.Pet
|
||||||
import io.swagger.client.core._
|
import io.swagger.client.core._
|
||||||
import io.swagger.client.core.CollectionFormats._
|
import io.swagger.client.core.CollectionFormats._
|
||||||
import io.swagger.client.core.ApiKeyLocations._
|
import io.swagger.client.core.ApiKeyLocations._
|
||||||
|
@ -23,7 +23,7 @@ object UserApi {
|
|||||||
def createUser(body: User): ApiRequest[Unit] =
|
def createUser(body: User): ApiRequest[Unit] =
|
||||||
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user", "application/json")
|
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user", "application/json")
|
||||||
.withBody(body)
|
.withBody(body)
|
||||||
.withDefaultSuccessResponse[Unit]
|
.withSuccessResponse[Unit](0)
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Expected answers:
|
* Expected answers:
|
||||||
@ -34,7 +34,7 @@ object UserApi {
|
|||||||
def createUsersWithArrayInput(body: Seq[User]): ApiRequest[Unit] =
|
def createUsersWithArrayInput(body: Seq[User]): ApiRequest[Unit] =
|
||||||
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithArray", "application/json")
|
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithArray", "application/json")
|
||||||
.withBody(body)
|
.withBody(body)
|
||||||
.withDefaultSuccessResponse[Unit]
|
.withSuccessResponse[Unit](0)
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Expected answers:
|
* Expected answers:
|
||||||
@ -45,7 +45,7 @@ object UserApi {
|
|||||||
def createUsersWithListInput(body: Seq[User]): ApiRequest[Unit] =
|
def createUsersWithListInput(body: Seq[User]): ApiRequest[Unit] =
|
||||||
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithList", "application/json")
|
ApiRequest[Unit](ApiMethods.POST, "http://petstore.swagger.io/v2", "/user/createWithList", "application/json")
|
||||||
.withBody(body)
|
.withBody(body)
|
||||||
.withDefaultSuccessResponse[Unit]
|
.withSuccessResponse[Unit](0)
|
||||||
/**
|
/**
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
*
|
*
|
||||||
@ -105,7 +105,7 @@ object UserApi {
|
|||||||
*/
|
*/
|
||||||
def logoutUser(): ApiRequest[Unit] =
|
def logoutUser(): ApiRequest[Unit] =
|
||||||
ApiRequest[Unit](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/logout", "application/json")
|
ApiRequest[Unit](ApiMethods.GET, "http://petstore.swagger.io/v2", "/user/logout", "application/json")
|
||||||
.withDefaultSuccessResponse[Unit]
|
.withSuccessResponse[Unit](0)
|
||||||
/**
|
/**
|
||||||
* This can only be done by the logged in user.
|
* This can only be done by the logged in user.
|
||||||
*
|
*
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class ApiResponse (
|
case class ApiResponse (
|
||||||
code: Option[Int],
|
code: Option[Int],
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class Category (
|
case class Category (
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class Order (
|
case class Order (
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class Pet (
|
case class Pet (
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class Tag (
|
case class Tag (
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
|
@ -8,6 +8,7 @@ package io.swagger.client.model
|
|||||||
|
|
||||||
import io.swagger.client.core.ApiModel
|
import io.swagger.client.core.ApiModel
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
case class User (
|
case class User (
|
||||||
id: Option[Long],
|
id: Option[Long],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user