I don't know if this has been proposed before, I c...
# serialization
h
I don't know if this has been proposed before, I couldn't find an issue for it at least, but I would like to see
GeneratedSerializer
become public api. Or even better, I would like a public interface that provides the
childSerializers
and
typeParameterSerializers
methods, and
GeneratedSerializer
extend that interface and then it can serve as a purely marker interface. These methods are really useful in library development when dealing with serialization. Example:
Copy code
public interface ExposedSerializer<T> : KSerializer<T> {
    public fun childSerializers(): Array<KSerializer<*>>
    public fun typeParametersSerializers(): Array<KSerializer<*>>
}

@InternalSerializationApi
public interface GeneratedSerializer<T> : ExposedSerializer<T> // Now just a marker interface