We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
classDiscriminatorMode
JsonConfiguration
1 parent 937c8ef commit ccc7a45Copy full SHA for ccc7a45
formats/json/commonMain/src/kotlinx/serialization/json/JsonConfiguration.kt
@@ -39,6 +39,10 @@ public class JsonConfiguration @OptIn(ExperimentalSerializationApi::class) inter
39
@ExperimentalSerializationApi
40
public val allowComments: Boolean = false,
41
42
+ @set:Deprecated(
43
+ "JsonConfiguration is not meant to be mutable, and will be made read-only in a future release. " +
44
+ "The `Json(from = ...) {}` copy builder should be used instead."
45
+ )
46
public var classDiscriminatorMode: ClassDiscriminatorMode = ClassDiscriminatorMode.POLYMORPHIC,
47
) {
48
0 commit comments