Victor Ermolaev
03/02/2021, 8:25 AM@Serializable
processed?aleksey.tomin
03/02/2021, 8:27 AMVictor Ermolaev
03/02/2021, 8:47 AM@SerialInfo
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.TYPE)
annotation class Ann
@Serializable
data class Outer(
@Ann
val dates: List<@Ann @Serializable(with = DateSerializer::class) Date>
)
Annotation on property dates
gets picked up, but on the type does not. And I know this must be possible because @Serializable
is picked up. Would you give some hints where appropriate modifications in the plugin code must be made?pdvrieze
03/02/2021, 11:01 AMpdvrieze
03/02/2021, 11:03 AM@Serializable
is special in that it has a different path, it specifies what serializer to use, not what to put in the descriptors.
Btw. as lists are serialized with a standard serializer you can always consider the property annotation to apply as if it were a (list) element annotation.Victor Ermolaev
03/07/2021, 2:55 PMpdvrieze
10/18/2021, 10:16 AMpdvrieze
10/18/2021, 10:22 AM