ConstraintDescriptor

data class ConstraintDescriptor(val annotationFqName: String, val validatorFqName: String?, val message: String, val messageKey: String, val groups: List<String>, val targetType: KSType, val annotation: KSAnnotation, val isObjectLevel: Boolean = false, val isAsync: Boolean = false)

Symbol descriptor holding metadata for a resolved constraint annotation processed by KSP.

Constructors

Link copied to clipboard
constructor(annotationFqName: String, validatorFqName: String?, message: String, messageKey: String, groups: List<String>, targetType: KSType, annotation: KSAnnotation, isObjectLevel: Boolean = false, isAsync: Boolean = false)

Properties

Link copied to clipboard
val annotation: KSAnnotation

Underlying KSP annotation symbol.

Link copied to clipboard

Fully qualified annotation class name.

Link copied to clipboard

Active validation group qualified names.

Link copied to clipboard
val isAsync: Boolean = false

true if the validator implements io.valix.runtime.AsyncConstraintValidator.

Link copied to clipboard
val isObjectLevel: Boolean = false

true if attached at class/object level; false if property level.

Link copied to clipboard

Error message template string.

Link copied to clipboard

Translation key string.

Link copied to clipboard
val targetType: KSType

Target Kotlin property type symbol.

Link copied to clipboard

Fully qualified custom validator class name (if applicable).