From 752042526c7af192484fe411cfeb3a216f403cad Mon Sep 17 00:00:00 2001 From: NoMathExpectation <85624722+NoMathExpectation@users.noreply.github.com> Date: Thu, 12 Mar 2026 03:41:28 +0800 Subject: [PATCH] Minor docs change. --- .../rdkt/core/serialization/FieldFlatteningSerializer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/serialization/FieldFlatteningSerializer.kt b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/serialization/FieldFlatteningSerializer.kt index eab0753..1699334 100644 --- a/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/serialization/FieldFlatteningSerializer.kt +++ b/core/src/commonMain/kotlin/cn/rdlevel/rdkt/core/serialization/FieldFlatteningSerializer.kt @@ -24,14 +24,14 @@ public annotation class Flatten * * When serializing, the fields annotated with [Flatten] will be flattened into the parent JSON object. * When deserializing, the fields annotated with [Flatten] will be deserialized from the parent JSON object, - * with elements that do not belong to any non-flattened fields. + * with elements that do not belong to any non-flattened fields or [JsonClassDiscriminator] of the base class. * * It's recommended to annotate classes that need to be flattened with [JsonIgnoreUnknownKeys][kotlinx.serialization.json.JsonIgnoreUnknownKeys] * when there are multiple flattened fields, so that fields that only belong to some classes can be ignored when deserializing other classes. * * This serializer only supports JSON encoding and decoding. * - * @param tSerializer The serializer, usually the [generated one][kotlinx.serialization.KeepGeneratedSerializer], for the type T that this serializer will delegate to. + * @param tSerializer The serializer, usually the [generated one][kotlinx.serialization.KeepGeneratedSerializer], for the type [T] that this serializer will delegate to. */ @OptIn(ExperimentalSerializationApi::class) @RDKTInternalAPI