You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val json = j.encodeToString(Messages.serializer, buildMessages {
+File("1").toResource().toImage()
})
相关日志
Class 'ResourceImage' is not registered for polymorphic serialization in the scope of 'Element'.
Mark the base class as 'sealed' or register the serializer explicitly.
kotlinx.serialization.SerializationException: Class 'ResourceImage' is not registered for polymorphic serialization in the scope of 'Element'.
Mark the base class as 'sealed' or register the serializer explicitly.
其他补充
No response
The text was updated successfully, but these errors were encountered:
版本号
v3.0.0
附加版本
No response
问题描述
Messages
序列化模块中没有ResourceImage
的多态信息复现方式
val json = j.encodeToString(Messages.serializer, buildMessages {
+File("1").toResource().toImage()
})
相关日志
其他补充
No response
The text was updated successfully, but these errors were encountered: