You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client: Using this schema with the kotlin-client-generator together with modelMutable=true will correctly use a MutableSet yet the defaultValue-initializer will still point to an immutable setOf()
/* Membership roles */
@get:JsonProperty("roles")
var roles: kotlin.collections.MutableSet<kotlin.String>?=setOf(),
Related issues/PRs
The mutableModel-features has been addressed in #11088
As a workaround, one can skip the default-Value annotation and agree on not skipping null/empty-values in json-serialization between server and client.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
openapi-generator version
7.12.0
OpenAPI declaration file content or url
Generation Details
Using the latest gradle-plugin, the kotlin-client-generator and mutable models
Steps to reproduce
Server: Simple Spring Boot WebMvc app using SpringDoc. Having a Response object like
generates a schema like
Client: Using this schema with the kotlin-client-generator together with
modelMutable=true
will correctly use a MutableSet yet the defaultValue-initializer will still point to an immutablesetOf()
Related issues/PRs
The mutableModel-features has been addressed in #11088
Suggest a fix
As a workaround, one can skip the default-Value annotation and agree on not skipping null/empty-values in json-serialization between server and client.
The text was updated successfully, but these errors were encountered: