diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java index 8036919680b8..c47f30e6a367 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractKotlinCodegen.java @@ -384,6 +384,14 @@ public void setEnumPropertyNaming(final String enumPropertyNamingType) { } } + @Override + public String toExampleValue(Schema schema) { + if (schema.getExample() != null) { + return super.toExampleValue(schema); + } + return null; + } + /** * returns the OpenAPI type for the property * diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java index 87a0c4d925a3..c99cf7a0aae1 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/spring/KotlinSpringServerCodegenTest.java @@ -788,24 +788,31 @@ public void useTargetOnInterfaceAnnotations() throws IOException { Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@Schema(example = \"null\", description = \"\")" ); - assertFileContains( + assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@get:Schema(example = \"null\", description = \"\")" ); + assertFileContains( + Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), + "@get:Schema(description = \"\")" + ); assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@Schema(example = \"null\", requiredMode = Schema.RequiredMode.REQUIRED, description = \"\")" ); - assertFileContains( + assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@get:Schema(example = \"null\", requiredMode = Schema.RequiredMode.REQUIRED, description = \"\")" ); + assertFileContains( + Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), + "@get:Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = \"\")" + ); } @Test(description = "use get Annotation use-site target on kotlin interface attributes (swagger1)") public void useTargetOnInterfaceAnnotationsWithSwagger1() throws IOException { File output = Files.createTempDirectory("test").toFile().getCanonicalFile(); - output.deleteOnExit(); String outputPath = output.getAbsolutePath().replace('\\', '/'); KotlinSpringServerCodegen codegen = new KotlinSpringServerCodegen(); @@ -823,18 +830,26 @@ public void useTargetOnInterfaceAnnotationsWithSwagger1() throws IOException { Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@ApiModelProperty(example = \"null\", value = \"\")" ); - assertFileContains( + assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@get:ApiModelProperty(example = \"null\", value = \"\")" ); + assertFileContains( + Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), + "@get:ApiModelProperty(value = \"\")" + ); assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@ApiModelProperty(example = \"null\", required = true, value = \"\")" ); - assertFileContains( + assertFileNotContains( Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), "@get:ApiModelProperty(example = \"null\", required = true, value = \"\")" ); + assertFileContains( + Paths.get(outputPath + "/src/main/kotlin/org/openapitools/model/Animal.kt"), + "@get:ApiModelProperty(required = true, value = \"\")" + ); } @Test diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Category.kt index d7037da8dea0..ec50829c0635 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 684d7c2fa1e8..3ebf5f5ea0cd 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Order.kt index 858d62c81958..76f4f093738b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Pet.kt index 1f4269d35cca..ebd784c67532 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Tag.kt index f9a8659d47a8..e833b8073c86 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/User.kt index 251f9ef957fe..d1afe1c0927b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-bean-validation/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Category.kt index d7037da8dea0..ec50829c0635 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 684d7c2fa1e8..3ebf5f5ea0cd 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Order.kt index 858d62c81958..76f4f093738b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Pet.kt index 1f4269d35cca..ebd784c67532 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Tag.kt index f9a8659d47a8..e833b8073c86 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/User.kt index 251f9ef957fe..d1afe1c0927b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Category.kt index d7037da8dea0..ec50829c0635 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 684d7c2fa1e8..3ebf5f5ea0cd 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Order.kt index 858d62c81958..76f4f093738b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt index 1f4269d35cca..ebd784c67532 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt index f9a8659d47a8..e833b8073c86 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/User.kt index 251f9ef957fe..d1afe1c0927b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Category.kt index d7037da8dea0..ec50829c0635 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 684d7c2fa1e8..3ebf5f5ea0cd 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Order.kt index 858d62c81958..76f4f093738b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt index 1f4269d35cca..ebd784c67532 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt index f9a8659d47a8..e833b8073c86 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/User.kt index 251f9ef957fe..d1afe1c0927b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface-wrapped/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Category.kt index d7037da8dea0..ec50829c0635 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 684d7c2fa1e8..3ebf5f5ea0cd 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Order.kt index 858d62c81958..76f4f093738b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Pet.kt index 1f4269d35cca..ebd784c67532 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Tag.kt index f9a8659d47a8..e833b8073c86 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/User.kt index 251f9ef957fe..d1afe1c0927b 100644 --- a/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-declarative-interface/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Annotation.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Annotation.kt index 6277525c4727..c4d95e75225c 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Annotation.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Annotation.kt @@ -22,7 +22,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Annotation( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPet.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPet.kt index 5344311246f7..b0c7a8a472e2 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPet.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPet.kt @@ -40,7 +40,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class AnyOfUserOrPet( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("username") @get:JsonProperty("username", required = true) val username: kotlin.String, @@ -48,67 +48,67 @@ data class AnyOfUserOrPet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPetOrArrayString.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPetOrArrayString.kt index 60d2f3bc9c93..245556f67207 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPetOrArrayString.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/AnyOfUserOrPetOrArrayString.kt @@ -40,7 +40,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class AnyOfUserOrPetOrArrayString( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("username") @get:JsonProperty("username", required = true) val username: kotlin.String, @@ -48,67 +48,67 @@ data class AnyOfUserOrPetOrArrayString( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") @get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Category.kt index d2e27480217e..70c208827031 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 13a22509cadb..53ef9b788fdb 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Order.kt index fc6ac8284963..004b070872ad 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Pet.kt index 1a5fa08a8a18..edcf36d7df67 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Tag.kt index d29f364dcad9..3e30bd07719f 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/User.kt index f35223733572..67857d6d788d 100644 --- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/User.kt @@ -31,47 +31,47 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("username") @get:JsonProperty("username", required = true) val username: kotlin.String, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/model/Apa.kt b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/model/Apa.kt index 84a6a84e475a..70d1f73e208f 100644 --- a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/model/Apa.kt +++ b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/model/Apa.kt @@ -27,32 +27,32 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Apa( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("bepa") @get:JsonProperty("bepa", required = true) val bepa: java.math.BigDecimal = java.math.BigDecimal("0"), - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("cepa") @get:JsonProperty("cepa", required = true) val cepa: java.math.BigDecimal = java.math.BigDecimal("6.28318"), - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("depa") @get:JsonProperty("depa") val depa: java.math.BigDecimal? = java.math.BigDecimal("71"), - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("epa") @get:JsonProperty("epa") val epa: java.math.BigDecimal? = java.math.BigDecimal("-71"), - @Schema(example = "null", description = "") + @Schema(description = "") @Deprecated(message = "") @param:JsonProperty("fepa") @get:JsonProperty("fepa") val fepa: java.math.BigDecimal? = java.math.BigDecimal("100"), - @Schema(example = "null", description = "") + @Schema(description = "") @param:JsonProperty("gepa") @get:JsonProperty("gepa") val gepa: java.math.BigDecimal? = null ) { diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Category.kt index 2f7b8afcdb54..a79181c7ee83 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index be99a451eed1..621aaabbe505 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Order.kt index 0744ff2d4e47..7b43d5674865 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Pet.kt index e10512ead290..0aa99a764a76 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Tag.kt index 6c369ede7d7f..ba99d00fd09d 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/User.kt index 48c218a96fb5..7fbfe9055862 100644 --- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Category.kt index d2e27480217e..70c208827031 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 13a22509cadb..53ef9b788fdb 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Order.kt index fc6ac8284963..004b070872ad 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt index 1466d9480ad8..45c87638f15f 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Tag.kt index d29f364dcad9..3e30bd07719f 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/User.kt index 21282c4e3657..ec11f6cb5068 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Cat.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Cat.kt index 5813f3803e36..4db812f3390c 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Cat.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Cat.kt @@ -36,52 +36,52 @@ import io.swagger.annotations.ApiModelProperty */ data class Cat( - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("name") @get:JsonProperty("name", required = true) override val name: kotlin.String, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) override val photoUrls: kotlin.collections.List, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("petType") @get:JsonProperty("petType", required = true) override val petType: kotlin.String, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("hunts") @get:JsonProperty("hunts") val hunts: kotlin.Boolean? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("age") @get:JsonProperty("age") val age: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") override val id: kotlin.Long? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") override val category: Category? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") override val tags: kotlin.collections.List? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Category.kt index c19b9a7c91f4..af04a591d91a 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Category( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Dog.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Dog.kt index 2a51c2aae5da..301b4c80b12f 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Dog.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Dog.kt @@ -37,52 +37,52 @@ import io.swagger.annotations.ApiModelProperty */ data class Dog( - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("bark") @get:JsonProperty("bark", required = true) val bark: kotlin.Boolean, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("breed") @get:JsonProperty("breed", required = true) val breed: Dog.Breed, - @ApiModelProperty(example = "null", required = true, value = "Whether the dog enjoys fetching") + @ApiModelProperty(required = true, value = "Whether the dog enjoys fetching") @param:JsonProperty("likesFetch") @get:JsonProperty("likesFetch", required = true) override val likesFetch: kotlin.Boolean, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("name") @get:JsonProperty("name", required = true) override val name: kotlin.String, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) override val photoUrls: kotlin.collections.List, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("petType") @get:JsonProperty("petType", required = true) override val petType: kotlin.String, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") override val id: kotlin.Long? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") override val category: Category? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") override val tags: kotlin.collections.List? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index d63275ebef45..1b1776c2ccfc 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.annotations.ApiModelProperty */ data class ModelApiResponse( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Order.kt index f4f0ff415e06..0cb6324faa4b 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.annotations.ApiModelProperty */ data class Order( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Pet.kt index d9cc53bc246a..14b070fef3c8 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Pet.kt @@ -46,31 +46,31 @@ import io.swagger.annotations.ApiModelProperty interface Pet : com.some.pack.Named, com.some.pack.WithCategory, com.some.pack.WithDefaultMethods, com.some.pack.WithPhotoUrls, java.io.Serializable { - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") override val name: kotlin.String - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") override val photoUrls: kotlin.collections.List - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") val petType: kotlin.String - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") val id: kotlin.Long? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") override val category: Category? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") val tags: kotlin.collections.List? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") val color: Color? diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Tag.kt index ea787cf41960..5c9781bdd99d 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Tag( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/User.kt index e8e3df0043b1..3e0e6531d605 100644 --- a/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-include-http-request-context-delegate/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.annotations.ApiModelProperty */ data class User( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Category.kt index cb16f8634846..6c4d3c5f36ee 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") var id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 42d019ca1c28..9886cbcdc3ad 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") var code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") var type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Order.kt index bf17370744c9..7d68cd3f584e 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") var id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") var petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") var quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") var shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") var status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Pet.kt index 5acd72ff27ae..3f3a4d005b5b 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) var name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) var photoUrls: kotlin.collections.MutableList, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") var id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") var category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") var tags: kotlin.collections.MutableList? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Tag.kt index 666e6d66bf79..8dabb08a5f93 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") var id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/User.kt index 71f69c0cc71f..86c750bac0c9 100644 --- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") var id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") var username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") var firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") var lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") var email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") var password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") var phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/model/MultipartMixedRequestMarker.kt b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/model/MultipartMixedRequestMarker.kt index 75f1f1798fe3..67a9e9aa4655 100644 --- a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/model/MultipartMixedRequestMarker.kt +++ b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/model/MultipartMixedRequestMarker.kt @@ -22,7 +22,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class MultipartMixedRequestMarker( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Category.kt index d2e27480217e..70c208827031 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 13a22509cadb..53ef9b788fdb 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Order.kt index fc6ac8284963..004b070872ad 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Pet.kt index 1466d9480ad8..45c87638f15f 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Tag.kt index d29f364dcad9..3e30bd07719f 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/User.kt index 21282c4e3657..ec11f6cb5068 100644 --- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Category.kt index d2e27480217e..70c208827031 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,14 +23,14 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 13a22509cadb..53ef9b788fdb 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Order.kt index fc6ac8284963..004b070872ad 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Pet.kt index 1466d9480ad8..45c87638f15f 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @Deprecated(message = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Tag.kt index d29f364dcad9..3e30bd07719f 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/User.kt index 21282c4e3657..ec11f6cb5068 100644 --- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Animal.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Animal.kt index d7e534bbf20e..49d3e8d0cdb9 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Animal.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Animal.kt @@ -35,10 +35,10 @@ import io.swagger.v3.oas.annotations.media.Schema ) interface Animal { - @get:Schema(example = "null", requiredMode = Schema.RequiredMode.REQUIRED, description = "") + @get:Schema(requiredMode = Schema.RequiredMode.REQUIRED, description = "") val className: kotlin.String - @get:Schema(example = "null", description = "") + @get:Schema(description = "") val color: kotlin.String? diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Cat.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Cat.kt index 42005c72e1a2..148d5e215f21 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Cat.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Cat.kt @@ -25,17 +25,17 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Cat( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("className") @get:JsonProperty("className", required = true) override val className: kotlin.String, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("declawed") @get:JsonProperty("declawed") val declawed: kotlin.Boolean? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Category.kt index 48dcb3cf16a8..0349895b01be 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,11 +23,11 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String = "default-name", - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Client.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Client.kt index 2dd5e13e2675..5e178d382ad3 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Client.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Client.kt @@ -22,7 +22,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Client( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("client") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Dog.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Dog.kt index 4ad2cc5195d3..856de1f1a7b0 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Dog.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Dog.kt @@ -25,17 +25,17 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Dog( - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("className") @get:JsonProperty("className", required = true) override val className: kotlin.String, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("breed") @get:JsonProperty("breed") val breed: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Foo.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Foo.kt index 28f28fb338e4..b6003fa0b6ef 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Foo.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Foo.kt @@ -22,7 +22,7 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Foo( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("bar") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/FooGetDefaultResponse.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/FooGetDefaultResponse.kt index 529d95ebd1d4..1b9a66de986b 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/FooGetDefaultResponse.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/FooGetDefaultResponse.kt @@ -24,7 +24,7 @@ import io.swagger.v3.oas.annotations.media.Schema data class FooGetDefaultResponse( @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("string") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 48a6dde613bc..85191632cd69 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Order.kt index f2c26ec7f2d9..2af160a5a2c6 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Pet.kt index 09fe219134cc..3933754b80f8 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.Set, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Tag.kt index 8d1fa8b76543..13b8277d89ed 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/User.kt index db579c5c1bf8..28822e59853c 100644 --- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Category.kt index bdef1620131d..2e4b3bc52c76 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Category( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index a005c2d0ab49..e14211ff5731 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.annotations.ApiModelProperty */ data class ModelApiResponse( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Order.kt index 614fab54815b..27dffa4141f6 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.annotations.ApiModelProperty */ data class Order( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @ApiModelProperty(example = "null", value = "Order Status") + @ApiModelProperty(value = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Pet.kt index 295de4980629..3de771e29973 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @ApiModelProperty(example = "null", value = "pet status in the store") + @ApiModelProperty(value = "pet status in the store") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Tag.kt index 27cf6521dae4..772d8a878a17 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Tag( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/User.kt index 17040679b5b0..3adc5fb6dc73 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger1/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.annotations.ApiModelProperty */ data class User( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "User Status") + @ApiModelProperty(value = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Category.kt index 201f2fccca7b..3a41378a588d 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Category( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index 6e5847d70299..4b36930f1360 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class ModelApiResponse( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Order.kt index df21eb4eb9a7..60cfdb5577f3 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Order( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @Schema(example = "null", description = "Order Status") + @Schema(description = "Order Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Pet.kt index 3452e53fc80d..2f4708fe0104 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Pet.kt @@ -35,31 +35,31 @@ data class Pet( @param:JsonProperty("name") @get:JsonProperty("name", required = true) val name: kotlin.String, - @Schema(example = "null", required = true, description = "") + @Schema(required = true, description = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") val category: Category? = null, @field:Valid - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") val tags: kotlin.collections.List? = null, - @Schema(example = "null", description = "pet status in the store") + @Schema(description = "pet status in the store") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Tag.kt index 240d56fd23cc..077505d41607 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class Tag( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/User.kt index d7a26619ca13..cb98bda412e2 100644 --- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.v3.oas.annotations.media.Schema */ data class User( - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @Schema(example = "null", description = "") + @Schema(description = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @Schema(example = "null", description = "User Status") + @Schema(description = "User Status") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Cat.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Cat.kt index 5813f3803e36..4db812f3390c 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Cat.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Cat.kt @@ -36,52 +36,52 @@ import io.swagger.annotations.ApiModelProperty */ data class Cat( - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("name") @get:JsonProperty("name", required = true) override val name: kotlin.String, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) override val photoUrls: kotlin.collections.List, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("petType") @get:JsonProperty("petType", required = true) override val petType: kotlin.String, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("hunts") @get:JsonProperty("hunts") val hunts: kotlin.Boolean? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("age") @get:JsonProperty("age") val age: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") override val id: kotlin.Long? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") override val category: Category? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") override val tags: kotlin.collections.List? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Category.kt index 0c4476c9698d..4935e94e1574 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Category.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Category.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Category( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") override val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Dog.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Dog.kt index 9ad790589a79..2202f4aae40b 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Dog.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Dog.kt @@ -37,52 +37,52 @@ import io.swagger.annotations.ApiModelProperty */ data class Dog( - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("bark") @get:JsonProperty("bark", required = true) override val bark: kotlin.Boolean, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("breed") @get:JsonProperty("breed", required = true) override val breed: Dog.Breed, - @ApiModelProperty(example = "null", required = true, value = "Whether the dog enjoys fetching") + @ApiModelProperty(required = true, value = "Whether the dog enjoys fetching") @param:JsonProperty("likesFetch") @get:JsonProperty("likesFetch", required = true) override val likesFetch: kotlin.Boolean, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("name") @get:JsonProperty("name", required = true) override val name: kotlin.String, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("photoUrls") @get:JsonProperty("photoUrls", required = true) override val photoUrls: kotlin.collections.List, - @ApiModelProperty(example = "null", required = true, value = "") + @ApiModelProperty(required = true, value = "") @param:JsonProperty("petType") @get:JsonProperty("petType", required = true) override val petType: kotlin.String, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") override val id: kotlin.Long? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("category") @get:JsonProperty("category") override val category: Category? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("tags") @get:JsonProperty("tags") override val tags: kotlin.collections.List? = null, @field:Valid - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("color") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt index d63275ebef45..1b1776c2ccfc 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt @@ -24,19 +24,19 @@ import io.swagger.annotations.ApiModelProperty */ data class ModelApiResponse( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("code") @get:JsonProperty("code") val code: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("type") @get:JsonProperty("type") val type: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("message") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Order.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Order.kt index f4f0ff415e06..0cb6324faa4b 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Order.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Order.kt @@ -29,37 +29,37 @@ import io.swagger.annotations.ApiModelProperty */ data class Order( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("petId") @get:JsonProperty("petId") val petId: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("quantity") @get:JsonProperty("quantity") val quantity: kotlin.Int? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("shipDate") @get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("status") @get:JsonProperty("status") val status: Order.Status? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("complete") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Pet.kt index 325017618776..21e90ed770f6 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Pet.kt @@ -46,31 +46,31 @@ import io.swagger.annotations.ApiModelProperty interface Pet : com.some.pack.Named, com.some.pack.WithCategory, com.some.pack.WithDefaultMethods, com.some.pack.WithId, java.io.Serializable { - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") override val name: kotlin.String - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") val photoUrls: kotlin.collections.List - @get:ApiModelProperty(example = "null", required = true, value = "") + @get:ApiModelProperty(required = true, value = "") val petType: kotlin.String - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") override val id: kotlin.Long? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") override val category: Category? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") val tags: kotlin.collections.List? - @get:ApiModelProperty(example = "null", value = "") + @get:ApiModelProperty(value = "") val color: Color? diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Tag.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Tag.kt index ea787cf41960..5c9781bdd99d 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Tag.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Tag.kt @@ -23,13 +23,13 @@ import io.swagger.annotations.ApiModelProperty */ data class Tag( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("name") diff --git a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/User.kt b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/User.kt index e8e3df0043b1..3e0e6531d605 100644 --- a/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/User.kt +++ b/samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/User.kt @@ -29,49 +29,49 @@ import io.swagger.annotations.ApiModelProperty */ data class User( - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("id") @get:JsonProperty("id") val id: kotlin.Long? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("username") @get:JsonProperty("username") val username: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("firstName") @get:JsonProperty("firstName") val firstName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("lastName") @get:JsonProperty("lastName") val lastName: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("email") @get:JsonProperty("email") val email: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("password") @get:JsonProperty("password") val password: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("phone") @get:JsonProperty("phone") val phone: kotlin.String? = null, - @ApiModelProperty(example = "null", value = "") + @ApiModelProperty(value = "") @field:JsonInclude(JsonInclude.Include.NON_NULL) @field:JsonSetter(nulls = Nulls.SKIP) @param:JsonProperty("userStatus")