mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 14:47:10 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user