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
@@ -25,7 +25,7 @@ data class Category(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("name") val name: kotlin.String? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ data class ModelApiResponse(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("message") val message: kotlin.String? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ data class Order(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("complete") val complete: kotlin.Boolean? = false
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
|
||||
@@ -47,7 +47,7 @@ data class Pet(
|
||||
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@get:JsonProperty("status") val status: Pet.Status? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -25,7 +25,7 @@ data class Tag(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("name") val name: kotlin.String? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ data class User(
|
||||
|
||||
@Schema(example = "null", description = "User Status")
|
||||
@get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user