WithContext

class WithContext<ContextType, ValueType>(valueType: KClass<*>, validator: Validator.Runner.WithContext<ContextType, ValueType>, contextProvider: suspend () -> ContextType) : ClientValidator

A validator for Validator.Runner.WithContext instances.

Constructors

Link copied to clipboard
constructor(valueType: KClass<*>, validator: Validator.Runner.WithContext<ContextType, ValueType>, contextProvider: suspend () -> ContextType)

Functions

Link copied to clipboard
open suspend override fun validate(value: Any?)

Validates the value.