forked from loafle/openapi-generator-original
[Kotlin][Client] fix missing curly bracket when the model contains enum property (#4118)
* fix kotlin okhttp3, add CI test * update kotlin server sample
This commit is contained in:
@@ -29,5 +29,3 @@ data class ApiResponse (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,5 +27,3 @@ data class Category (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -35,25 +35,18 @@ data class Order (
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
/**
|
||||
* Order Status
|
||||
* Values: placed,approved,delivered
|
||||
*/
|
||||
@Serializable(with = Status.Serializer::class)
|
||||
enum class Status(val value: kotlin.String){
|
||||
|
||||
placed("placed"),
|
||||
|
||||
approved("approved"),
|
||||
|
||||
delivered("delivered");
|
||||
|
||||
|
||||
object Serializer : CommonEnumSerializer<Status>("Status", values(), values().map { it.value }.toTypedArray())
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -37,25 +37,18 @@ data class Pet (
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
/**
|
||||
* pet status in the store
|
||||
* Values: available,pending,sold
|
||||
*/
|
||||
@Serializable(with = Status.Serializer::class)
|
||||
enum class Status(val value: kotlin.String){
|
||||
|
||||
available("available"),
|
||||
|
||||
pending("pending"),
|
||||
|
||||
sold("sold");
|
||||
|
||||
|
||||
object Serializer : CommonEnumSerializer<Status>("Status", values(), values().map { it.value }.toTypedArray())
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,5 +27,3 @@ data class Tag (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,5 +40,3 @@ data class User (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user