-
Notifications
You must be signed in to change notification settings - Fork 242
Feature request: disable event validation #757
Copy link
Copy link
Open
Description
Let's say that I would like to handle invalid events that do not conform with specification in my own receiver function.
Is it possible to add a feature toggle to disable validation in Invoke?
// Check if event is valid before invoking the receiver function
if e != nil {
if validationErr := e.Validate(); validationErr != nil {
r.observabilityService.RecordReceivedMalformedEvent(ctx, validationErr)
return respFn(ctx, nil, protocol.NewReceipt(false, "validation error in incoming event: %w", validationErr))
}
}
The problem I'm trying to solve is to send ack even for invalid events received from kafka.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels