Validator

interface Validator

A validator that should be registered with RequestValidation plugin

Functions

Link copied to clipboard
abstract fun filter(value: Any): Boolean

Checks if the value should be checked by this validator.

Link copied to clipboard
abstract suspend fun validate(value: Any): ValidationResult

Validates the value.