Dariusz Kuc
04/08/2021, 6:06 PMMemberName
and it generally works great
public data class Result(
public val myEnum: MyEnum = MyEnum.VALUE
)
Problem arise when I have multiple enums having same value as MemberName
adds explicit import to that value, i.e.
import com.expediagroup.graphql.generated.enums.MyEnum
import com.expediagroup.graphql.generated.enums.MyEnum.VALUE
Any suggestions how to fix that? Should I just reference the VALUE
from the code without using MemberName
?Dariusz Kuc
04/08/2021, 6:10 PM%L
for literal value and just build it out as enum.value
diesieben07
04/08/2021, 6:14 PM"%T.%N"
and the TypeName
and name for the constantDariusz Kuc
04/08/2021, 6:31 PMconstructorParameter.defaultValue("%T.%N", className, className.member(VALUE))
does not produce the extra unnecessary import