Skip to content

Commit

Permalink
fix dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Dec 14, 2024
1 parent c38b6b9 commit 6fd86fe
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@
package org.openapitools.server.models


import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* A category for a pet
* @param id
* @param name
*/
@Serializable
data class Category(
val id: kotlin.Long? = null,
val name: kotlin.String? = null
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,21 @@
package org.openapitools.server.models


import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* Describes the result of uploading an image resource
* @param code
* @param type
* @param message
*/
@Serializable
data class ModelApiResponse(
val code: kotlin.Int? = null,
val type: kotlin.String? = null,
val message: kotlin.String? = null
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package org.openapitools.server.models


import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* An order for a pets from the pet store
* @param id
Expand All @@ -22,7 +22,6 @@ import kotlinx.serialization.Serializable
* @param status Order Status
* @param complete
*/
@Serializable
data class Order(
val id: kotlin.Long? = null,
val petId: kotlin.Long? = null,
Expand All @@ -31,8 +30,11 @@ data class Order(
/* Order Status */
val status: Order.Status? = null,
val complete: kotlin.Boolean? = false
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
/**
* Order Status
* Values: placed,approved,delivered
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ package org.openapitools.server.models
import org.openapitools.server.models.Category
import org.openapitools.server.models.Tag

import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* A pet for sale in the pet store
* @param name
Expand All @@ -24,7 +24,6 @@ import kotlinx.serialization.Serializable
* @param tags
* @param status pet status in the store
*/
@Serializable
data class Pet(
val name: kotlin.String,
val photoUrls: kotlin.collections.List<kotlin.String>,
Expand All @@ -33,8 +32,11 @@ data class Pet(
val tags: kotlin.collections.List<Tag>? = null,
/* pet status in the store */
val status: Pet.Status? = null
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
/**
* pet status in the store
* Values: available,pending,sold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,19 @@
package org.openapitools.server.models


import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* A tag for a pet
* @param id
* @param name
*/
@Serializable
data class Tag(
val id: kotlin.Long? = null,
val name: kotlin.String? = null
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
package org.openapitools.server.models


import kotlinx.serialization.Serializable
import java.io.Serializable
/**
* A User who is purchasing from the pet store
* @param id
Expand All @@ -24,7 +24,6 @@ import kotlinx.serialization.Serializable
* @param phone
* @param userStatus User Status
*/
@Serializable
data class User(
val id: kotlin.Long? = null,
val username: kotlin.String? = null,
Expand All @@ -35,7 +34,10 @@ data class User(
val phone: kotlin.String? = null,
/* User Status */
val userStatus: kotlin.Int? = null
)
) : Serializable
{
companion object {
private const val serialVersionUID: Long = 123
}
}

0 comments on commit 6fd86fe

Please sign in to comment.