Closed Alex009 closed 3 years ago
required: true, nullable: true -> optional, without default required: true, nullable: false -> not optional, without default
required: false, nullable: true -> optional, default = null required: false, nullable: false -> not optional, with default (where we got default?)
will be available in 0.11.0
To use Json encodingDefaults https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#encoding-defaults feature for PUT requests where we should not send arguments that not change value - we should use default
null
only in case where parameter isrequired
andnullable: true
, ornot required
.