From 25d39c36340b570a8243a3f9f36bd93aec653f06 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 6 Apr 2019 18:42:33 +0800 Subject: [PATCH] add new kotlin sample file --- .../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 00000000000..c34cec48df1 --- /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 +) { + +} +