i have a data structure that i serialize into a da...
# serialization
e
i have a data structure that i serialize into a database using cbor. i want to change one of the fields on the data class from a
val foo: Foo? = null
to a
val foos: List<Foo> = listOf()
but leave all the other serialization logic alone. any tips? i see the @KeepGeneratedSerializer stuff but can't figure out how to delegate to that deserializer only for this one field
or maybe there's some way i can just annotate that one field and use the old field name with a
@SerialName("foo")
...and then check the descriptor to determine if it's a list or a nullable? hmmm