IEventContext

interface IEventContext

Context accompanying validation of a single event.

Properties

Link copied to clipboard
abstract val eventData: Map<String, Any>
Link copied to clipboard
abstract val eventId: String

Functions

Link copied to clipboard
abstract fun addError(error: ValidationError)
Link copied to clipboard
abstract fun getErrors(): List<ValidationError>?
Link copied to clipboard
abstract fun <T> getPayload(key: PayloadKey<T>): T?
Link copied to clipboard
abstract fun <T> setPayload(key: PayloadKey<T>, value: T)