[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:
Jan
2019-10-09 09:17:53 +02:00
committed by William Cheng
parent cf38c56aa6
commit bbfcd3bf64
108 changed files with 840 additions and 505 deletions

View File

@@ -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())
}
}

View File

@@ -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())
}
}