[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:
William Cheng
2019-10-10 18:21:50 +08:00
committed by GitHub
parent 3141e483ef
commit b69b8cdd31
34 changed files with 129 additions and 168 deletions

View File

@@ -45,23 +45,15 @@ data class Order (
companion object {
private const val serialVersionUID: Long = 123
}
/**
* Order Status
* Values: placed,approved,delivered
*/
enum class Status(val value: kotlin.String){
@Json(name = "placed") placed("placed"),
@Json(name = "approved") approved("approved"),
@Json(name = "delivered") delivered("delivered");
}
}

View File

@@ -47,23 +47,15 @@ data class Pet (
companion object {
private const val serialVersionUID: Long = 123
}
/**
* pet status in the store
* Values: available,pending,sold
*/
enum class Status(val value: kotlin.String){
@Json(name = "available") available("available"),
@Json(name = "pending") pending("pending"),
@Json(name = "sold") sold("sold");
}
}