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 b51d657Copy full SHA for b51d657
formats/json/commonMain/src/kotlinx/serialization/json/JsonConfiguration.kt
@@ -39,6 +39,11 @@ 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
+ level = DeprecationLevel.ERROR
46
+ )
47
public var classDiscriminatorMode: ClassDiscriminatorMode = ClassDiscriminatorMode.POLYMORPHIC,
48
) {
49
0 commit comments