validateData

fun validateData(data: Data, messageKind: String)

Validate message data or resource data against a predefined schema

Parameters

data

The message or resource data to validate.

messageKind

The message or resource kind of the data.

Throws

if validation fails, including a list of validation errors.