[Kotlin] Use mutable container types when 'modelMutable' is enabled (#11154)

* [Kotlin] Use Mutable container types when 'modelMutable' is enabled

* Generate sample 'kotlin' project with mutable models

* Generate sample 'kotlin-server' project with mutable models

* Generate sample 'kotlin-vertx' project with mutable models

* Generate sample 'ktorm-schema' project with mutable models

Co-authored-by: Bruno Coelho <4brunu@users.noreply.github.com>
This commit is contained in:
Armel Soro
2022-01-30 13:06:03 +01:00
committed by GitHub
parent f79ac98bc3
commit ed14ce4dec
128 changed files with 7665 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ data class Pet(
@field:JsonProperty("name", required = true) var name: kotlin.String,
@ApiModelProperty(example = "null", required = true, value = "")
@field:JsonProperty("photoUrls", required = true) var photoUrls: kotlin.collections.List<kotlin.String>,
@field:JsonProperty("photoUrls", required = true) var photoUrls: kotlin.collections.MutableList<kotlin.String>,
@ApiModelProperty(example = "null", value = "")
@field:JsonProperty("id") var id: kotlin.Long? = null,
@@ -41,7 +41,7 @@ data class Pet(
@field:Valid
@ApiModelProperty(example = "null", value = "")
@field:JsonProperty("tags") var tags: kotlin.collections.List<Tag>? = null,
@field:JsonProperty("tags") var tags: kotlin.collections.MutableList<Tag>? = null,
@ApiModelProperty(example = "null", value = "pet status in the store")
@field:JsonProperty("status") var status: Pet.Status? = null