Skip to content

Commit 6159bca

Browse files
committed
add some default strings and fix test
1 parent 00f079c commit 6159bca

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model

samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Cat.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ data class Cat(
5050
override val category: Category? = null,
5151

5252
@get:JsonProperty("nonRequiredWithDefaultList", required = false)
53-
override val nonRequiredWithDefaultList: kotlin.collections.List<kotlin.String> = arrayListOf(),
53+
override val nonRequiredWithDefaultList: kotlin.collections.List<kotlin.String> = arrayListOf("just some default string","another default string"),
5454

5555
@get:JsonProperty("nonRequiredWithDefaultSet", required = false)
56-
override val nonRequiredWithDefaultSet: kotlin.collections.Set<kotlin.String> = setOf(),
56+
override val nonRequiredWithDefaultSet: kotlin.collections.Set<kotlin.String> = setOf("more strings","look, it's a string!"),
5757

5858
@get:JsonProperty("nonRequiredWithDefaultString", required = false)
5959
override val nonRequiredWithDefaultString: kotlin.String = "defaultValue",

samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/model/Dog.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ data class Dog(
5454
override val category: Category? = null,
5555

5656
@get:JsonProperty("nonRequiredWithDefaultList", required = false)
57-
override val nonRequiredWithDefaultList: kotlin.collections.List<kotlin.String> = arrayListOf(),
57+
override val nonRequiredWithDefaultList: kotlin.collections.List<kotlin.String> = arrayListOf("just some default string","another default string"),
5858

5959
@get:JsonProperty("nonRequiredWithDefaultSet", required = false)
60-
override val nonRequiredWithDefaultSet: kotlin.collections.Set<kotlin.String> = setOf(),
60+
override val nonRequiredWithDefaultSet: kotlin.collections.Set<kotlin.String> = setOf("more strings","look, it's a string!"),
6161

6262
@get:JsonProperty("nonRequiredWithDefaultString", required = false)
6363
override val nonRequiredWithDefaultString: kotlin.String = "defaultValue",

0 commit comments

Comments
 (0)