mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 03:57:08 +00:00
fix: Template contains unconditional ": Serializable" which creates wrong derive clause on data classes which have a parent as well as are serializable. (#19283)
This commit is contained in:
committed by
GitHub
parent
7f551bb9a0
commit
484b87f22a
@@ -26,7 +26,7 @@ data class Category(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@get:JsonProperty("name") val name: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -30,7 +30,7 @@ data class ModelApiResponse(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@get:JsonProperty("message") val message: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -44,7 +44,7 @@ data class Order(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@get:JsonProperty("complete") val complete: kotlin.Boolean? = false
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
|
||||
@@ -48,7 +48,7 @@ data class Pet(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "pet status in the store")
|
||||
@get:JsonProperty("status") val status: Pet.Status? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -26,7 +26,7 @@ data class Tag(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "")
|
||||
@get:JsonProperty("name") val name: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -50,7 +50,7 @@ data class User(
|
||||
|
||||
@ApiModelProperty(example = "null", value = "User Status")
|
||||
@get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
Reference in New Issue
Block a user