validateMessage

fun validateMessage(message: Message)

Validate a message against a predefined schema

Parameters

message

The message data to validate.

Throws

if validation fails, including a list of validation errors.