Marc Knaup
02/03/2019, 11:05 AMimport io.ktor.http.Url
@JSON
typealias Url = Url
Then in the annotation processor I could access the aliased type and apply the annotation logic there.
Unfortunately that doesn't work with source-only annotations.Marc Knaup
02/03/2019, 11:13 AM@file:JSON.CodecProvider(
externalTypes = [
JSON.External(
target = Url::class,
configuration = JSON(…)
)
]
)