diff --git a/src/cloudevents/core/v1/event.py b/src/cloudevents/core/v1/event.py index b56ef41..043670b 100644 --- a/src/cloudevents/core/v1/event.py +++ b/src/cloudevents/core/v1/event.py @@ -70,7 +70,7 @@ def _validate_attribute(attributes: dict[str, Any]) -> None: errors.update(CloudEvent._validate_optional_attributes(attributes=attributes)) errors.update(CloudEvent._validate_extension_attributes(attributes=attributes)) if errors: - raise CloudEventValidationError(dict(errors)) + raise CloudEventValidationError(errors=errors) @staticmethod def _validate_required_attributes(