From 8450f4d62defd0e170cbb69f29832e1ef5d3a802 Mon Sep 17 00:00:00 2001 From: Vincent Devos Date: Sat, 6 Apr 2019 08:46:52 +0200 Subject: [PATCH] [KOTLIN spring-boot] revert delete Category.kt sample --- .../kotlin/org/openapitools/model/Category.kt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/model/Category.kt diff --git a/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/model/Category.kt b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/model/Category.kt new file mode 100644 index 000000000000..c34cec48df16 --- /dev/null +++ b/samples/server/petstore/kotlin-springboot/src/main/kotlin/org/openapitools/model/Category.kt @@ -0,0 +1,24 @@ +package org.openapitools.model + +import java.util.Objects +import com.fasterxml.jackson.annotation.JsonProperty +import javax.validation.Valid +import javax.validation.constraints.* +import io.swagger.annotations.ApiModelProperty + +/** + * A category for a pet + * @param id + * @param name + */ +data class Category ( + + @ApiModelProperty(example = "null", value = "") + @JsonProperty("id") val id: Long? = null, + + @ApiModelProperty(example = "null", value = "") + @JsonProperty("name") val name: String? = null +) { + +} +