PropertyValidationRule

Type-safe validation rule interface for property validation. Implement this interface to create custom validation rules.

Properties

Link copied to clipboard
abstract val description: String

Human-readable description of this rule.

Functions

Link copied to clipboard
open fun failureReason(mention: String): String?

Get the failure reason for an invalid mention.

Link copied to clipboard
abstract fun isValid(mention: String): Boolean

Check if the mention is valid according to this rule.