J茅r么me Gully
02/05/2021, 10:58 AMCommonEnumSerializer / EnumSerializer . I try to use openapi-generator KMP export to generate data classes from json swagger and generated models uses unresolved CommonEnumSerializer , for example
@Serializable(with = Env.Serializer::class)
enum class Env(val value: kotlin.String){
notDeployed("not_deployed"),
inDeployment("in_deployment"),
deployed("deployed");
object Serializer : CommonEnumSerializer<Env>("Env", values(), values().map { it.value.toString() }.toTypedArray())
}
What is the current way for doing that ? Or how to find/use CommonEnumSerializer 馃Dominaezzz
02/05/2021, 11:51 AMJ茅r么me Gully
02/05/2021, 2:04 PM@Serializable. But...the generator export with CommonEnumSerializer so I wanted to understand why. Maybe special case ...