Open
Description
Consider the following class:
data class Node(val data: Int, val nodes: List<Node>)
For that, kotlinx.serialization
is able to generate a proper serializer (using the coupling between auto-generated serializer and childSerializers
loophole), but there is no public API to write it an external (or custom) serial descriptor/serializer for that.
When solving the similar problem for JsonElement
serialization, we ended up with the following:
Potentially, we can streamline it, pick a decent name (e.g.: recursive
, deferred
, nested
) and make it public