[kotlin][client] Add Jackson to interface properties and remove extra line feed (#5459)

* [kotlin][client] Ensure Jackson annotations are consistent with interface vars

* [kotlin][client] Rebuild samples

* [kotlin][client] Some kotlin client enhancements

- Don't use JsonFormat for Date objects, this should be controlled via
  a custom serializer/deserializer or a turning on and off serialization
  features of Jackson.  I've updated the jacksonObjectMapper config to
  write the dates as strings, which I think was intended in the original
  commit.
  https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS
  https://fasterxml.github.io/jackson-databind/javadoc/2.6/com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat--
- Dont' use @JsonFormat(shape = JsonFormat.Shape.OBJECT) for enums.
  This causes Enums to be formatted as objects with an internal "value"
  field.  In reality, OpenAPI enums are just strings without properties
  and should be treated as a string.
  https://www.baeldung.com/jackson-serialize-enums#2-enum-as-json-object
- Add's Kotlin use site annotation @get: to JsonProperty for parent interface
  properties.  Otherwise Kotlin will warn:
  "This annotation is not applicable to target 'member property without
  backing field or delegate'"
- Add's JsonTypeInfo annotations to interfaces for inheritance.  This
  was copied verbatim from the kotlin-spring generator.
  https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/kotlin-spring/typeInfoAnnotation.mustache

* [kotlin][client] Rebuild kotlin samples
This commit is contained in:
Matt Traynham
2020-03-23 22:05:46 -04:00
committed by GitHub
parent f7fe93b8d6
commit 6400ce2330
81 changed files with 278 additions and 618 deletions

View File

@@ -10,7 +10,10 @@ import com.squareup.moshi.JsonClass
{{/moshi}} {{/moshi}}
{{#jackson}} {{#jackson}}
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat {{#discriminator}}
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
{{/discriminator}}
{{/jackson}} {{/jackson}}
{{#parcelizeModels}} {{#parcelizeModels}}
import android.os.Parcelable import android.os.Parcelable
@@ -34,7 +37,7 @@ import java.io.Serializable
{{#parcelizeModels}} {{#parcelizeModels}}
@Parcelize @Parcelize
{{/parcelizeModels}} {{/parcelizeModels}}
{{#multiplatform}}@Serializable{{/multiplatform}}{{#moshi}}{{#moshiCodeGen}}@JsonClass(generateAdapter = true){{/moshiCodeGen}}{{/moshi}} {{#multiplatform}}@Serializable{{/multiplatform}}{{#moshi}}{{#moshiCodeGen}}@JsonClass(generateAdapter = true){{/moshiCodeGen}}{{/moshi}}{{#jackson}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{/jackson}}
{{#nonPublicApi}}internal {{/nonPublicApi}}{{#discriminator}}interface{{/discriminator}}{{^discriminator}}data class{{/discriminator}} {{classname}}{{^discriminator}} ( {{#nonPublicApi}}internal {{/nonPublicApi}}{{#discriminator}}interface{{/discriminator}}{{^discriminator}}data class{{/discriminator}} {{classname}}{{^discriminator}} (
{{#vars}} {{#vars}}
{{#required}}{{>data_class_req_var}}{{/required}}{{^required}}{{>data_class_opt_var}}{{/required}}{{^-last}},{{/-last}} {{#required}}{{>data_class_req_var}}{{/required}}{{^required}}{{>data_class_opt_var}}{{/required}}{{^-last}},{{/-last}}
@@ -57,7 +60,6 @@ import java.io.Serializable
* Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}} * Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}}
*/ */
{{#multiplatform}}@Serializable(with = {{nameInCamelCase}}.Serializer::class){{/multiplatform}} {{#multiplatform}}@Serializable(with = {{nameInCamelCase}}.Serializer::class){{/multiplatform}}
{{#jackson}}{{#isPrimitiveType}}@JsonFormat(shape = JsonFormat.Shape.NATURAL){{/isPrimitiveType}}{{^isPrimitiveType}}@JsonFormat(shape = JsonFormat.Shape.OBJECT){{/isPrimitiveType}}{{/jackson}}
{{#nonPublicApi}}internal {{/nonPublicApi}}enum class {{{nameInCamelCase}}}(val value: {{#isListContainer}}{{{ nestedType }}}{{/isListContainer}}{{^isListContainer}}{{{dataType}}}{{/isListContainer}}){ {{#nonPublicApi}}internal {{/nonPublicApi}}enum class {{{nameInCamelCase}}}(val value: {{#isListContainer}}{{{ nestedType }}}{{/isListContainer}}{{^isListContainer}}{{{dataType}}}{{/isListContainer}}){
{{#allowableValues}} {{#allowableValues}}
{{#enumVars}} {{#enumVars}}

View File

@@ -9,10 +9,6 @@
@SerializedName("{{{vendorExtensions.x-base-name-literal}}}") @SerializedName("{{{vendorExtensions.x-base-name-literal}}}")
{{/gson}} {{/gson}}
{{#jackson}} {{#jackson}}
{{#isDateTime}}
@JsonFormat
(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss")
{{/isDateTime}}
@JsonProperty("{{{vendorExtensions.x-base-name-literal}}}") @JsonProperty("{{{vendorExtensions.x-base-name-literal}}}")
{{/jackson}} {{/jackson}}
{{/multiplatform}} {{/multiplatform}}

View File

@@ -5,6 +5,9 @@ import com.google.gson.annotations.SerializedName
{{#moshi}} {{#moshi}}
import com.squareup.moshi.Json import com.squareup.moshi.Json
{{/moshi}} {{/moshi}}
{{#jackson}}
import com.fasterxml.jackson.annotation.JsonProperty
{{/jackson}}
{{/multiplatform}} {{/multiplatform}}
{{#multiplatform}} {{#multiplatform}}
import kotlinx.serialization.* import kotlinx.serialization.*
@@ -16,7 +19,6 @@ import kotlinx.serialization.internal.CommonEnumSerializer
* Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}} * Values: {{#allowableValues}}{{#enumVars}}{{&name}}{{^-last}},{{/-last}}{{/enumVars}}{{/allowableValues}}
*/ */
{{#multiplatform}}@Serializable(with = {{classname}}.Serializer::class){{/multiplatform}} {{#multiplatform}}@Serializable(with = {{classname}}.Serializer::class){{/multiplatform}}
{{#jackson}}@JsonFormat(shape = JsonFormat.Shape.OBJECT){{/jackson}}
{{#nonPublicApi}}internal {{/nonPublicApi}}enum class {{classname}}(val value: {{{dataType}}}){ {{#nonPublicApi}}internal {{/nonPublicApi}}enum class {{classname}}(val value: {{{dataType}}}){
{{#allowableValues}}{{#enumVars}} {{#allowableValues}}{{#enumVars}}

View File

@@ -8,5 +8,8 @@
{{#gson}} {{#gson}}
@SerializedName("{{{vendorExtensions.x-base-name-literal}}}") @SerializedName("{{{vendorExtensions.x-base-name-literal}}}")
{{/gson}} {{/gson}}
{{#jackson}}
@get:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}")
{{/jackson}}
{{/multiplatform}} {{/multiplatform}}
{{#multiplatform}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") {{/multiplatform}}{{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{#isList}}kotlin.collections.List{{/isList}}{{^isList}}kotlin.Array{{/isList}}<{{classname}}.{{{nameInCamelCase}}}>{{/isListContainer}}{{^isListContainer}}{{classname}}.{{{nameInCamelCase}}}{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}? {{#multiplatform}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") {{/multiplatform}}{{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{#isList}}kotlin.collections.List{{/isList}}{{^isList}}kotlin.Array{{/isList}}<{{classname}}.{{{nameInCamelCase}}}>{{/isListContainer}}{{^isListContainer}}{{classname}}.{{{nameInCamelCase}}}{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}?

View File

@@ -8,5 +8,8 @@
{{#gson}} {{#gson}}
@SerializedName("{{{vendorExtensions.x-base-name-literal}}}") @SerializedName("{{{vendorExtensions.x-base-name-literal}}}")
{{/gson}} {{/gson}}
{{#jackson}}
@get:JsonProperty("{{{vendorExtensions.x-base-name-literal}}}")
{{/jackson}}
{{/multiplatform}} {{/multiplatform}}
{{#multiplatform}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") @Required {{/multiplatform}}{{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{#isList}}kotlin.collections.List{{/isList}}{{^isList}}kotlin.Array{{/isList}}<{{classname}}.{{{nameInCamelCase}}}>{{/isListContainer}}{{^isListContainer}}{{classname}}.{{{nameInCamelCase}}}{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}}?{{/isNullable}} {{#multiplatform}}@SerialName(value = "{{{vendorExtensions.x-base-name-literal}}}") @Required {{/multiplatform}}{{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{#isList}}kotlin.collections.List{{/isList}}{{^isList}}kotlin.Array{{/isList}}<{{classname}}.{{{nameInCamelCase}}}>{{/isListContainer}}{{^isListContainer}}{{classname}}.{{{nameInCamelCase}}}{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isNullable}}?{{/isNullable}}

View File

@@ -24,6 +24,7 @@ import java.util.UUID
{{/gson}} {{/gson}}
{{#jackson}} {{#jackson}}
import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.annotation.JsonInclude
@@ -70,5 +71,6 @@ import java.util.Date
.registerModule(Jdk8Module()) .registerModule(Jdk8Module())
.registerModule(JavaTimeModule()) .registerModule(JavaTimeModule())
.setSerializationInclusion(JsonInclude.Include.NON_ABSENT) .setSerializationInclusion(JsonInclude.Include.NON_ABSENT)
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
{{/jackson}} {{/jackson}}
} }

View File

@@ -0,0 +1,6 @@
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "{{{discriminator.propertyBaseName}}}", visible = true)
@JsonSubTypes(
{{#discriminator.mappedModels}}
JsonSubTypes.Type(value = {{modelName}}::class, name = "{{^vendorExtensions.x-discriminator-value}}{{mappingName}}{{/vendorExtensions.x-discriminator-value}}{{#vendorExtensions.x-discriminator-value}}{{{vendorExtensions.x-discriminator-value}}}{{/vendorExtensions.x-discriminator-value}}"){{^-last}},{{/-last}}
{{/discriminator.mappedModels}}
)

View File

@@ -22,13 +22,10 @@ import com.google.gson.annotations.SerializedName
data class ApiResponse ( data class ApiResponse (
@SerializedName("code") @SerializedName("code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@SerializedName("type") @SerializedName("type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@SerializedName("message") @SerializedName("message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.google.gson.annotations.SerializedName
data class Category ( data class Category (
@SerializedName("id") @SerializedName("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@SerializedName("name") @SerializedName("name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.google.gson.annotations.SerializedName
data class Order ( data class Order (
@SerializedName("id") @SerializedName("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@SerializedName("petId") @SerializedName("petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@SerializedName("quantity") @SerializedName("quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@SerializedName("shipDate") @SerializedName("shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@SerializedName("status") @SerializedName("status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@SerializedName("complete") @SerializedName("complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@SerializedName(value="placed") placed("placed"), @SerializedName(value="placed") placed("placed"),
@SerializedName(value="approved") approved("approved"), @SerializedName(value="approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.google.gson.annotations.SerializedName
data class Pet ( data class Pet (
@SerializedName("name") @SerializedName("name")
val name: kotlin.String val name: kotlin.String,
,
@SerializedName("photoUrls") @SerializedName("photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@SerializedName("id") @SerializedName("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@SerializedName("category") @SerializedName("category")
val category: Category? = null val category: Category? = null,
,
@SerializedName("tags") @SerializedName("tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@SerializedName("status") @SerializedName("status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@SerializedName(value="available") available("available"), @SerializedName(value="available") available("available"),
@SerializedName(value="pending") pending("pending"), @SerializedName(value="pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.google.gson.annotations.SerializedName
data class Tag ( data class Tag (
@SerializedName("id") @SerializedName("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@SerializedName("name") @SerializedName("name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.google.gson.annotations.SerializedName
data class User ( data class User (
@SerializedName("id") @SerializedName("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@SerializedName("username") @SerializedName("username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@SerializedName("firstName") @SerializedName("firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@SerializedName("lastName") @SerializedName("lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@SerializedName("email") @SerializedName("email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@SerializedName("password") @SerializedName("password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@SerializedName("phone") @SerializedName("phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@SerializedName("userStatus") @SerializedName("userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -1,6 +1,7 @@
package org.openapitools.client.infrastructure package org.openapitools.client.infrastructure
import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.annotation.JsonInclude import com.fasterxml.jackson.annotation.JsonInclude
@@ -13,4 +14,5 @@ object Serializer {
.registerModule(Jdk8Module()) .registerModule(Jdk8Module())
.registerModule(JavaTimeModule()) .registerModule(JavaTimeModule())
.setSerializationInclusion(JsonInclude.Include.NON_ABSENT) .setSerializationInclusion(JsonInclude.Include.NON_ABSENT)
.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
} }

View File

@@ -13,7 +13,6 @@ package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* Describes the result of uploading an image resource * Describes the result of uploading an image resource
* @param code * @param code
@@ -23,13 +22,10 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class ApiResponse ( data class ApiResponse (
@JsonProperty("code") @JsonProperty("code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@JsonProperty("type") @JsonProperty("type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@JsonProperty("message") @JsonProperty("message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -13,7 +13,6 @@ package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* A category for a pet * A category for a pet
* @param id * @param id
@@ -22,10 +21,8 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class Category ( data class Category (
@JsonProperty("id") @JsonProperty("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@JsonProperty("name") @JsonProperty("name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -13,7 +13,6 @@ package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* An order for a pets from the pet store * An order for a pets from the pet store
* @param id * @param id
@@ -26,26 +25,18 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class Order ( data class Order (
@JsonProperty("id") @JsonProperty("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@JsonProperty("petId") @JsonProperty("petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@JsonProperty("quantity") @JsonProperty("quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@JsonFormat
(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy hh:mm:ss")
@JsonProperty("shipDate") @JsonProperty("shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@JsonProperty("status") @JsonProperty("status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@JsonProperty("complete") @JsonProperty("complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -53,7 +44,6 @@ data class Order (
* Values: PLACED,APPROVED,DELIVERED * Values: PLACED,APPROVED,DELIVERED
*/ */
@JsonFormat(shape = JsonFormat.Shape.NATURAL)
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@JsonProperty(value="placed") PLACED("placed"), @JsonProperty(value="placed") PLACED("placed"),
@JsonProperty(value="approved") APPROVED("approved"), @JsonProperty(value="approved") APPROVED("approved"),

View File

@@ -15,7 +15,6 @@ import org.openapitools.client.models.Category
import org.openapitools.client.models.Tag import org.openapitools.client.models.Tag
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* A pet for sale in the pet store * A pet for sale in the pet store
* @param name * @param name
@@ -28,24 +27,18 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class Pet ( data class Pet (
@JsonProperty("name") @JsonProperty("name")
val name: kotlin.String val name: kotlin.String,
,
@JsonProperty("photoUrls") @JsonProperty("photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@JsonProperty("id") @JsonProperty("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@JsonProperty("category") @JsonProperty("category")
val category: Category? = null val category: Category? = null,
,
@JsonProperty("tags") @JsonProperty("tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@JsonProperty("status") @JsonProperty("status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -53,7 +46,6 @@ data class Pet (
* Values: AVAILABLE,PENDING,SOLD * Values: AVAILABLE,PENDING,SOLD
*/ */
@JsonFormat(shape = JsonFormat.Shape.NATURAL)
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@JsonProperty(value="available") AVAILABLE("available"), @JsonProperty(value="available") AVAILABLE("available"),
@JsonProperty(value="pending") PENDING("pending"), @JsonProperty(value="pending") PENDING("pending"),

View File

@@ -13,7 +13,6 @@ package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* A tag for a pet * A tag for a pet
* @param id * @param id
@@ -22,10 +21,8 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class Tag ( data class Tag (
@JsonProperty("id") @JsonProperty("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@JsonProperty("name") @JsonProperty("name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -13,7 +13,6 @@ package org.openapitools.client.models
import com.fasterxml.jackson.annotation.JsonProperty import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonFormat
/** /**
* A User who is purchasing from the pet store * A User who is purchasing from the pet store
* @param id * @param id
@@ -28,29 +27,21 @@ import com.fasterxml.jackson.annotation.JsonFormat
data class User ( data class User (
@JsonProperty("id") @JsonProperty("id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@JsonProperty("username") @JsonProperty("username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@JsonProperty("firstName") @JsonProperty("firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@JsonProperty("lastName") @JsonProperty("lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@JsonProperty("email") @JsonProperty("email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@JsonProperty("password") @JsonProperty("password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@JsonProperty("phone") @JsonProperty("phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@JsonProperty("userStatus") @JsonProperty("userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -22,13 +22,10 @@ import com.squareup.moshi.Json
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.squareup.moshi.Json
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.squareup.moshi.Json
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.squareup.moshi.Json
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -23,13 +23,10 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -22,10 +22,8 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -26,24 +26,18 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -51,7 +45,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -28,24 +28,18 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -53,7 +47,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -22,10 +22,8 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -28,29 +28,21 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true) @JsonClass(generateAdapter = true)
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -22,11 +22,8 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class ApiResponse ( data class ApiResponse (
@SerialName(value = "code") val code: kotlin.Int? = null @SerialName(value = "code") val code: kotlin.Int? = null,
, @SerialName(value = "type") val type: kotlin.String? = null,
@SerialName(value = "type") val type: kotlin.String? = null
,
@SerialName(value = "message") val message: kotlin.String? = null @SerialName(value = "message") val message: kotlin.String? = null
) )

View File

@@ -21,9 +21,7 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class Category ( data class Category (
@SerialName(value = "id") val id: kotlin.Long? = null @SerialName(value = "id") val id: kotlin.Long? = null,
,
@SerialName(value = "name") val name: kotlin.String? = null @SerialName(value = "name") val name: kotlin.String? = null
) )

View File

@@ -25,19 +25,13 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class Order ( data class Order (
@SerialName(value = "id") val id: kotlin.Long? = null @SerialName(value = "id") val id: kotlin.Long? = null,
, @SerialName(value = "petId") val petId: kotlin.Long? = null,
@SerialName(value = "petId") val petId: kotlin.Long? = null @SerialName(value = "quantity") val quantity: kotlin.Int? = null,
, @SerialName(value = "shipDate") val shipDate: kotlin.String? = null,
@SerialName(value = "quantity") val quantity: kotlin.Int? = null
,
@SerialName(value = "shipDate") val shipDate: kotlin.String? = null
,
/* Order Status */ /* Order Status */
@SerialName(value = "status") val status: Order.Status? = null @SerialName(value = "status") val status: Order.Status? = null,
,
@SerialName(value = "complete") val complete: kotlin.Boolean? = null @SerialName(value = "complete") val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -45,7 +39,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
@Serializable(with = Status.Serializer::class) @Serializable(with = Status.Serializer::class)
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
placed("placed"), placed("placed"),
approved("approved"), approved("approved"),

View File

@@ -27,19 +27,13 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class Pet ( data class Pet (
@SerialName(value = "name") @Required val name: kotlin.String @SerialName(value = "name") @Required val name: kotlin.String,
, @SerialName(value = "photoUrls") @Required val photoUrls: kotlin.Array<kotlin.String>,
@SerialName(value = "photoUrls") @Required val photoUrls: kotlin.Array<kotlin.String> @SerialName(value = "id") val id: kotlin.Long? = null,
, @SerialName(value = "category") val category: Category? = null,
@SerialName(value = "id") val id: kotlin.Long? = null @SerialName(value = "tags") val tags: kotlin.Array<Tag>? = null,
,
@SerialName(value = "category") val category: Category? = null
,
@SerialName(value = "tags") val tags: kotlin.Array<Tag>? = null
,
/* pet status in the store */ /* pet status in the store */
@SerialName(value = "status") val status: Pet.Status? = null @SerialName(value = "status") val status: Pet.Status? = null
) { ) {
/** /**
@@ -47,7 +41,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
@Serializable(with = Status.Serializer::class) @Serializable(with = Status.Serializer::class)
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
available("available"), available("available"),
pending("pending"), pending("pending"),

View File

@@ -21,9 +21,7 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class Tag ( data class Tag (
@SerialName(value = "id") val id: kotlin.Long? = null @SerialName(value = "id") val id: kotlin.Long? = null,
,
@SerialName(value = "name") val name: kotlin.String? = null @SerialName(value = "name") val name: kotlin.String? = null
) )

View File

@@ -27,22 +27,14 @@ import kotlinx.serialization.internal.CommonEnumSerializer
*/ */
@Serializable @Serializable
data class User ( data class User (
@SerialName(value = "id") val id: kotlin.Long? = null @SerialName(value = "id") val id: kotlin.Long? = null,
, @SerialName(value = "username") val username: kotlin.String? = null,
@SerialName(value = "username") val username: kotlin.String? = null @SerialName(value = "firstName") val firstName: kotlin.String? = null,
, @SerialName(value = "lastName") val lastName: kotlin.String? = null,
@SerialName(value = "firstName") val firstName: kotlin.String? = null @SerialName(value = "email") val email: kotlin.String? = null,
, @SerialName(value = "password") val password: kotlin.String? = null,
@SerialName(value = "lastName") val lastName: kotlin.String? = null @SerialName(value = "phone") val phone: kotlin.String? = null,
,
@SerialName(value = "email") val email: kotlin.String? = null
,
@SerialName(value = "password") val password: kotlin.String? = null
,
@SerialName(value = "phone") val phone: kotlin.String? = null
,
/* User Status */ /* User Status */
@SerialName(value = "userStatus") val userStatus: kotlin.Int? = null @SerialName(value = "userStatus") val userStatus: kotlin.Int? = null
) )

View File

@@ -22,13 +22,10 @@ import com.squareup.moshi.Json
internal data class ApiResponse ( internal data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
internal data class Category ( internal data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.squareup.moshi.Json
internal data class Order ( internal data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ internal data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
internal enum class Status(val value: kotlin.String){ internal enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.squareup.moshi.Json
internal data class Pet ( internal data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ internal data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
internal enum class Status(val value: kotlin.String){ internal enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
internal data class Tag ( internal data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.squareup.moshi.Json
internal data class User ( internal data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -23,14 +23,11 @@ import java.io.Serializable
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -26,24 +26,18 @@ import java.io.Serializable
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -54,7 +48,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -28,24 +28,18 @@ import java.io.Serializable
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -56,7 +50,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -28,30 +28,22 @@ import java.io.Serializable
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -22,13 +22,10 @@ import com.squareup.moshi.Json
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.squareup.moshi.Json
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.squareup.moshi.Json
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.squareup.moshi.Json
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -22,13 +22,10 @@ import com.squareup.moshi.Json
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.squareup.moshi.Json
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.squareup.moshi.Json
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.squareup.moshi.Json
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -23,14 +23,11 @@ import java.io.Serializable
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -26,24 +26,18 @@ import java.io.Serializable
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: kotlin.String? = null val shipDate: kotlin.String? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -54,7 +48,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -28,24 +28,18 @@ import java.io.Serializable
data class Pet ( data class Pet (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -56,7 +50,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -28,30 +28,22 @@ import java.io.Serializable
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -22,13 +22,10 @@ import com.squareup.moshi.Json
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) )

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -25,24 +25,18 @@ import com.squareup.moshi.Json
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: org.threeten.bp.OffsetDateTime? = null val shipDate: org.threeten.bp.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) { ) {
/** /**
@@ -50,7 +44,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -27,24 +27,18 @@ import com.squareup.moshi.Json
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) { ) {
/** /**
@@ -52,7 +46,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -21,10 +21,8 @@ import com.squareup.moshi.Json
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) )

View File

@@ -27,29 +27,21 @@ import com.squareup.moshi.Json
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) )

View File

@@ -23,14 +23,11 @@ import java.io.Serializable
data class ApiResponse ( data class ApiResponse (
@Json(name = "code") @Json(name = "code")
val code: kotlin.Int? = null val code: kotlin.Int? = null,
,
@Json(name = "type") @Json(name = "type")
val type: kotlin.String? = null val type: kotlin.String? = null,
,
@Json(name = "message") @Json(name = "message")
val message: kotlin.String? = null val message: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Category ( data class Category (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -26,24 +26,18 @@ import java.io.Serializable
data class Order ( data class Order (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "petId") @Json(name = "petId")
val petId: kotlin.Long? = null val petId: kotlin.Long? = null,
,
@Json(name = "quantity") @Json(name = "quantity")
val quantity: kotlin.Int? = null val quantity: kotlin.Int? = null,
,
@Json(name = "shipDate") @Json(name = "shipDate")
val shipDate: java.time.OffsetDateTime? = null val shipDate: java.time.OffsetDateTime? = null,
,
/* Order Status */ /* Order Status */
@Json(name = "status") @Json(name = "status")
val status: Order.Status? = null val status: Order.Status? = null,
,
@Json(name = "complete") @Json(name = "complete")
val complete: kotlin.Boolean? = null val complete: kotlin.Boolean? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -54,7 +48,6 @@ data class Order (
* Values: placed,approved,delivered * Values: placed,approved,delivered
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"), @Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"), @Json(name = "approved") approved("approved"),

View File

@@ -28,24 +28,18 @@ import java.io.Serializable
data class Pet ( data class Pet (
@Json(name = "name") @Json(name = "name")
val name: kotlin.String val name: kotlin.String,
,
@Json(name = "photoUrls") @Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String> val photoUrls: kotlin.Array<kotlin.String>,
,
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "category") @Json(name = "category")
val category: Category? = null val category: Category? = null,
,
@Json(name = "tags") @Json(name = "tags")
val tags: kotlin.Array<Tag>? = null val tags: kotlin.Array<Tag>? = null,
,
/* pet status in the store */ /* pet status in the store */
@Json(name = "status") @Json(name = "status")
val status: Pet.Status? = null val status: Pet.Status? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123
@@ -56,7 +50,6 @@ data class Pet (
* Values: available,pending,sold * Values: available,pending,sold
*/ */
enum class Status(val value: kotlin.String){ enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"), @Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"), @Json(name = "pending") pending("pending"),

View File

@@ -22,11 +22,9 @@ import java.io.Serializable
data class Tag ( data class Tag (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "name") @Json(name = "name")
val name: kotlin.String? = null val name: kotlin.String? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123

View File

@@ -28,30 +28,22 @@ import java.io.Serializable
data class User ( data class User (
@Json(name = "id") @Json(name = "id")
val id: kotlin.Long? = null val id: kotlin.Long? = null,
,
@Json(name = "username") @Json(name = "username")
val username: kotlin.String? = null val username: kotlin.String? = null,
,
@Json(name = "firstName") @Json(name = "firstName")
val firstName: kotlin.String? = null val firstName: kotlin.String? = null,
,
@Json(name = "lastName") @Json(name = "lastName")
val lastName: kotlin.String? = null val lastName: kotlin.String? = null,
,
@Json(name = "email") @Json(name = "email")
val email: kotlin.String? = null val email: kotlin.String? = null,
,
@Json(name = "password") @Json(name = "password")
val password: kotlin.String? = null val password: kotlin.String? = null,
,
@Json(name = "phone") @Json(name = "phone")
val phone: kotlin.String? = null val phone: kotlin.String? = null,
,
/* User Status */ /* User Status */
@Json(name = "userStatus") @Json(name = "userStatus")
val userStatus: kotlin.Int? = null val userStatus: kotlin.Int? = null
) : Serializable { ) : Serializable {
companion object { companion object {
private const val serialVersionUID: Long = 123 private const val serialVersionUID: Long = 123