validate

fun validate(jsonMessage: <Error class: unknown class>, schemaName: String)

Validates a JSON message against a predefined schema.

Parameters

jsonMessage

The JSON message to validate.

schemaName

The name of the schema to use for validation.

Throws

if validation fails, including a list of validation errors.