mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 12:46:11 +00:00
This commit is contained in:
@@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class Category (
|
||||
|
||||
@field:JsonProperty("id")
|
||||
@get:JsonProperty("id")
|
||||
val id: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("name")
|
||||
@get:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
) {
|
||||
|
||||
@@ -30,13 +30,13 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class ModelApiResponse (
|
||||
|
||||
@field:JsonProperty("code")
|
||||
@get:JsonProperty("code")
|
||||
val code: kotlin.Int? = null,
|
||||
|
||||
@field:JsonProperty("type")
|
||||
@get:JsonProperty("type")
|
||||
val type: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("message")
|
||||
@get:JsonProperty("message")
|
||||
val message: kotlin.String? = null
|
||||
|
||||
) {
|
||||
|
||||
@@ -33,23 +33,23 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class Order (
|
||||
|
||||
@field:JsonProperty("id")
|
||||
@get:JsonProperty("id")
|
||||
val id: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("petId")
|
||||
@get:JsonProperty("petId")
|
||||
val petId: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("quantity")
|
||||
@get:JsonProperty("quantity")
|
||||
val quantity: kotlin.Int? = null,
|
||||
|
||||
@field:JsonProperty("shipDate")
|
||||
@get:JsonProperty("shipDate")
|
||||
val shipDate: java.time.OffsetDateTime? = null,
|
||||
|
||||
/* Order Status */
|
||||
@field:JsonProperty("status")
|
||||
@get:JsonProperty("status")
|
||||
val status: Order.Status? = null,
|
||||
|
||||
@field:JsonProperty("complete")
|
||||
@get:JsonProperty("complete")
|
||||
val complete: kotlin.Boolean? = false
|
||||
|
||||
) {
|
||||
|
||||
@@ -35,23 +35,23 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class Pet (
|
||||
|
||||
@field:JsonProperty("name")
|
||||
@get:JsonProperty("name")
|
||||
val name: kotlin.String,
|
||||
|
||||
@field:JsonProperty("photoUrls")
|
||||
@get:JsonProperty("photoUrls")
|
||||
val photoUrls: kotlin.collections.List<kotlin.String>,
|
||||
|
||||
@field:JsonProperty("id")
|
||||
@get:JsonProperty("id")
|
||||
val id: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("category")
|
||||
@get:JsonProperty("category")
|
||||
val category: Category? = null,
|
||||
|
||||
@field:JsonProperty("tags")
|
||||
@get:JsonProperty("tags")
|
||||
val tags: kotlin.collections.List<Tag>? = null,
|
||||
|
||||
/* pet status in the store */
|
||||
@field:JsonProperty("status")
|
||||
@get:JsonProperty("status")
|
||||
@Deprecated(message = "This property is deprecated.")
|
||||
val status: Pet.Status? = null
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class Tag (
|
||||
|
||||
@field:JsonProperty("id")
|
||||
@get:JsonProperty("id")
|
||||
val id: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("name")
|
||||
@get:JsonProperty("name")
|
||||
val name: kotlin.String? = null
|
||||
|
||||
) {
|
||||
|
||||
@@ -35,29 +35,29 @@ import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class User (
|
||||
|
||||
@field:JsonProperty("id")
|
||||
@get:JsonProperty("id")
|
||||
val id: kotlin.Long? = null,
|
||||
|
||||
@field:JsonProperty("username")
|
||||
@get:JsonProperty("username")
|
||||
val username: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("firstName")
|
||||
@get:JsonProperty("firstName")
|
||||
val firstName: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("lastName")
|
||||
@get:JsonProperty("lastName")
|
||||
val lastName: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("email")
|
||||
@get:JsonProperty("email")
|
||||
val email: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("password")
|
||||
@get:JsonProperty("password")
|
||||
val password: kotlin.String? = null,
|
||||
|
||||
@field:JsonProperty("phone")
|
||||
@get:JsonProperty("phone")
|
||||
val phone: kotlin.String? = null,
|
||||
|
||||
/* User Status */
|
||||
@field:JsonProperty("userStatus")
|
||||
@get:JsonProperty("userStatus")
|
||||
val userStatus: kotlin.Int? = null
|
||||
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user