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
I propose to add a new object instead of using an annotation to decode / encoding comments, so it can support comments for each element?
proposal:
// primitive:data classCommentableInt(valcomment:String, valvalue:Int)
data classCommentableBoolean(valcomment:String, valvalue:Boolean)
data classCommentableFloat(valcomment:String, valvalue:Float)
...
data classCommentable<T>(valcomment:String, valvalue:T)
yml:
# people's ratingrank: 80foods: # list declaration# need a pizzapizza: truetakeout: true
kotlin:
@Serializable
data classTest(
valrank:CommentableInt,
valfoods:List<Commentable<String>>,
valtakeout:CommentableBoolean,
)
Also, it seems impossible to serialize comments as objects at present, or do I miss something?
The text was updated successfully, but these errors were encountered:
I propose to add a new object instead of using an annotation to decode / encoding comments, so it can support comments for each element?
proposal:
yml:
kotlin:
Also, it seems impossible to serialize comments as objects at present, or do I miss something?
The text was updated successfully, but these errors were encountered: