File tree 12 files changed +24
-0
lines changed
kotlin-server/ktor/src/main/kotlin/org/openapitools/server/models
kotlin-server-modelMutable/src/main/kotlin/org/openapitools/server/models
12 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 12
12
package org.openapitools.server.models
13
13
14
14
15
+ import kotlinx.serialization.Serializable
15
16
/* *
16
17
* A category for a pet
17
18
* @param id
18
19
* @param name
19
20
*/
21
+ @Serializable
20
22
data class Category (
21
23
var id : kotlin.Long? = null ,
22
24
var name : kotlin.String? = null
Original file line number Diff line number Diff line change 12
12
package org.openapitools.server.models
13
13
14
14
15
+ import kotlinx.serialization.Serializable
15
16
/* *
16
17
* Describes the result of uploading an image resource
17
18
* @param code
18
19
* @param type
19
20
* @param message
20
21
*/
22
+ @Serializable
21
23
data class ModelApiResponse (
22
24
var code : kotlin.Int? = null ,
23
25
var type : kotlin.String? = null ,
Original file line number Diff line number Diff line change 12
12
package org.openapitools.server.models
13
13
14
14
15
+ import kotlinx.serialization.Serializable
15
16
/* *
16
17
* An order for a pets from the pet store
17
18
* @param id
@@ -21,6 +22,7 @@ package org.openapitools.server.models
21
22
* @param status Order Status
22
23
* @param complete
23
24
*/
25
+ @Serializable
24
26
data class Order (
25
27
var id : kotlin.Long? = null ,
26
28
var petId : kotlin.Long? = null ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ package org.openapitools.server.models
14
14
import org.openapitools.server.models.Category
15
15
import org.openapitools.server.models.Tag
16
16
17
+ import kotlinx.serialization.Serializable
17
18
/* *
18
19
* A pet for sale in the pet store
19
20
* @param name
@@ -23,6 +24,7 @@ import org.openapitools.server.models.Tag
23
24
* @param tags
24
25
* @param status pet status in the store
25
26
*/
27
+ @Serializable
26
28
data class Pet (
27
29
var name : kotlin.String ,
28
30
var photoUrls : kotlin.collections.MutableList <kotlin.String >,
Original file line number Diff line number Diff line change 12
12
package org.openapitools.server.models
13
13
14
14
15
+ import kotlinx.serialization.Serializable
15
16
/* *
16
17
* A tag for a pet
17
18
* @param id
18
19
* @param name
19
20
*/
21
+ @Serializable
20
22
data class Tag (
21
23
var id : kotlin.Long? = null ,
22
24
var name : kotlin.String? = null
Original file line number Diff line number Diff line change 12
12
package org.openapitools.server.models
13
13
14
14
15
+ import kotlinx.serialization.Serializable
15
16
/* *
16
17
* A User who is purchasing from the pet store
17
18
* @param id
@@ -23,6 +24,7 @@ package org.openapitools.server.models
23
24
* @param phone
24
25
* @param userStatus User Status
25
26
*/
27
+ @Serializable
26
28
data class User (
27
29
var id : kotlin.Long? = null ,
28
30
var username : kotlin.String? = null ,
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ package org.openapitools.server.models
13
13
14
14
15
15
import java.io.Serializable
16
+ import kotlinx.serialization.Serializable
16
17
/* *
17
18
* A category for a pet
18
19
* @param id
19
20
* @param name
20
21
*/
22
+ @Serializable
21
23
data class Category (
22
24
val id : kotlin.Long? = null ,
23
25
val name : kotlin.String? = null
Original file line number Diff line number Diff line change @@ -13,12 +13,14 @@ package org.openapitools.server.models
13
13
14
14
15
15
import java.io.Serializable
16
+ import kotlinx.serialization.Serializable
16
17
/* *
17
18
* Describes the result of uploading an image resource
18
19
* @param code
19
20
* @param type
20
21
* @param message
21
22
*/
23
+ @Serializable
22
24
data class ModelApiResponse (
23
25
val code : kotlin.Int? = null ,
24
26
val type : kotlin.String? = null ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ package org.openapitools.server.models
13
13
14
14
15
15
import java.io.Serializable
16
+ import kotlinx.serialization.Serializable
16
17
/* *
17
18
* An order for a pets from the pet store
18
19
* @param id
@@ -22,6 +23,7 @@ package org.openapitools.server.models
22
23
* @param status Order Status
23
24
* @param complete
24
25
*/
26
+ @Serializable
25
27
data class Order (
26
28
val id : kotlin.Long? = null ,
27
29
val petId : kotlin.Long? = null ,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import org.openapitools.server.models.Category
15
15
import org.openapitools.server.models.Tag
16
16
17
17
import java.io.Serializable
18
+ import kotlinx.serialization.Serializable
18
19
/* *
19
20
* A pet for sale in the pet store
20
21
* @param name
@@ -24,6 +25,7 @@ import org.openapitools.server.models.Tag
24
25
* @param tags
25
26
* @param status pet status in the store
26
27
*/
28
+ @Serializable
27
29
data class Pet (
28
30
val name : kotlin.String ,
29
31
val photoUrls : kotlin.collections.List <kotlin.String >,
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ package org.openapitools.server.models
13
13
14
14
15
15
import java.io.Serializable
16
+ import kotlinx.serialization.Serializable
16
17
/* *
17
18
* A tag for a pet
18
19
* @param id
19
20
* @param name
20
21
*/
22
+ @Serializable
21
23
data class Tag (
22
24
val id : kotlin.Long? = null ,
23
25
val name : kotlin.String? = null
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ package org.openapitools.server.models
13
13
14
14
15
15
import java.io.Serializable
16
+ import kotlinx.serialization.Serializable
16
17
/* *
17
18
* A User who is purchasing from the pet store
18
19
* @param id
@@ -24,6 +25,7 @@ package org.openapitools.server.models
24
25
* @param phone
25
26
* @param userStatus User Status
26
27
*/
28
+ @Serializable
27
29
data class User (
28
30
val id : kotlin.Long? = null ,
29
31
val username : kotlin.String? = null ,
You can’t perform that action at this time.
0 commit comments