mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 01:47:12 +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
@@ -21,7 +21,7 @@ data class Annotation(
|
||||
|
||||
@Schema(example = "null", description = "")
|
||||
@get:JsonProperty("id") val id: java.util.UUID? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ data class AnyOfUserOrPet(
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@Deprecated(message = "")
|
||||
@get:JsonProperty("status") val status: AnyOfUserOrPet.Status? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -78,7 +78,7 @@ data class AnyOfUserOrPetOrArrayString(
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@Deprecated(message = "")
|
||||
@get:JsonProperty("status") val status: AnyOfUserOrPetOrArrayString.Status? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -26,7 +26,7 @@ data class Category(
|
||||
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
||||
@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
|
||||
|
||||
@@ -48,7 +48,7 @@ data class Pet(
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@Deprecated(message = "")
|
||||
@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
|
||||
) {
|
||||
) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ data class UserOrPet(
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@Deprecated(message = "")
|
||||
@get:JsonProperty("status") val status: UserOrPet.Status? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
@@ -78,7 +78,7 @@ data class UserOrPetOrArrayString(
|
||||
@Schema(example = "null", description = "pet status in the store")
|
||||
@Deprecated(message = "")
|
||||
@get:JsonProperty("status") val status: UserOrPetOrArrayString.Status? = null
|
||||
) {
|
||||
) {
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
|
||||
Reference in New Issue
Block a user