forked from loafle/openapi-generator-original
[kotlin-client][kotlin-server] Feature/kotlin data class serial version uid (#4021)
* feat: add companion object to data classes if the implement the interface java.io.Serializable * style: format template file * style: adapt to project's original code style * fix: add missing imports * style: reverted mustache template to original styling * test: generate additional samples for kotlin-springboot-reactive and kotlin-springboot * docs: name full qualified classname of interface java.io.Serializable to prevent confusion with kotlinx.serialization
This commit is contained in:
@@ -29,3 +29,5 @@ data class ApiResponse (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,3 +27,5 @@ data class Category (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ data class Order (
|
||||
)
|
||||
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
@@ -54,5 +55,5 @@ data class Order (
|
||||
object Serializer : CommonEnumSerializer<Status>("Status", values(), values().map { it.value }.toTypedArray())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -37,7 +37,8 @@ data class Pet (
|
||||
)
|
||||
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -56,5 +57,5 @@ data class Pet (
|
||||
object Serializer : CommonEnumSerializer<Status>("Status", values(), values().map { it.value }.toTypedArray())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -27,3 +27,5 @@ data class Tag (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -40,3 +40,5 @@ data class User (
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user