MissingFieldException, however field is present
Him188 opened this issue · comments
Simplified reproducer:
@Serializable
data class User(
val mailAddress: String? = null,
val name: String,
)
default.decodeFromString(User.serializer(), """
name: cssxsh
mailAddress: cssxsh@gmail.com
""")
}
Root cause is wrong decodeNullableSerializableElement