Create a new EventValidator instance.
Validation configuration options
Optionallogger: IPluginLoggingOptional logger for error reporting
Update validation configuration at runtime.
New configuration options to merge
Validate input data for an event.
Name of the event being validated
Data to validate
BSBType or Zod schema to validate against
Trace for logging context
OptionaleventConfig: Partial<EventValidationConfig>Override configuration for this validation
Validation result with parsed data or error
Validate output/return data for an event.
Name of the event being validated
Data to validate
BSBType or Zod schema to validate against
Trace for logging context
OptionaleventConfig: Partial<EventValidationConfig>Override configuration for this validation
Validation result with parsed data or error
Validate event data using schemas from a validation schema map.
Name of the event to validate
Data to validate
Map of event validation schemas
Trace for logging context
Whether validating 'input' or 'output' data
Validation result or null if no schema is defined
Check if validation is enabled for the current configuration.
OptionaleventConfig: Partial<EventValidationConfig>Override configuration to check
True if validation is enabled
Utility class for validating event data using Zod schemas. Provides performance monitoring and configurable validation behavior.
See
API: EventValidator