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'm not sure if this is actually a bug or I'm misunderstanding the behavior somehow. The details are here.
To Reproduce
I have a class like this:
@Serializable
data classFoo(valbar:String = "baz")
I'm using it with a custom deserializer that enables sequential decoding. I see decodeStringElement being called for bar which gives me no possibility of handling the missing state of the optional value, i.e. signaling to use the default.
Expected behavior
There is some way to flag that an element is not present and the default should be used.