Companion

Types

Link copied to clipboard
data class AnnotatedKType(val type: KType, val additionalAnnotations: List<Annotation> = listOf(), val typeAnnotation: List<Annotation> = type.annotations, val classAnnotation: List<Annotation> = type.jvmErasure.annotations)

needed because a type is equal to another no matter the annotations

Functions

Link copied to clipboard
fun <T : Any> build(tClass: KClass<T>, annotations: List<Annotation> = listOf()): ValidationHandler
fun build(type: KType, annotations: List<Annotation> = listOf()): ValidationHandler

Black Magic: DO NOT TOUCH We use a string because it accounts for the annotations