Function relay_event_normalization::validate_event

source ยท
pub fn validate_event(
    event: &mut Annotated<Event>,
    config: &EventValidationConfig,
) -> ProcessingResult
Expand description

Validates an event.

Validation consists of performing multiple checks on the payload, based on the given configuration.

The returned ProcessingResult indicates whether the passed event is invalid and thus should be dropped.