CommandValidator

fun interface CommandValidator

Validates a decoded and transformed command body of type: the violations it finds, none when it is valid. Any violation refuses the command with FrameworkCodes.COMMAND_INVALID, listing them all.

Functions

Link copied to clipboard
abstract fun validate(type: CommandType, body: Any): List<Violation>