validate Data
Validate message data or resource data against a predefined schema
Parameters
data
The message or resource data to validate.
message Kind
The message or resource kind of the data.
Throws
if validation fails, including a list of validation errors.