forked from loafle/openapi-generator-original
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(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("name") var name: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -30,7 +30,7 @@ data class ModelApiResponse(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("message") var message: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -44,7 +44,7 @@ data class Order(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("complete") var complete: kotlin.Boolean? = false
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
|
||||
@@ -48,7 +48,7 @@ data class Pet(
|
||||
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@get:JsonProperty("status") var status: Pet.Status? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -26,7 +26,7 @@ data class Tag(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("name") var name: kotlin.String? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
@@ -50,7 +50,7 @@ data class User(
|
||||
|
||||
@Schema(example = "null", description = "User Status")
|
||||
@get:JsonProperty("userStatus") var userStatus: kotlin.Int? = null
|
||||
) : Serializable{
|
||||
) : Serializable{
|
||||
|
||||
companion object {
|
||||
private const val serialVersionUID: kotlin.Long = 1
|
||||
|
||||
Reference in New Issue
Block a user