File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 20
20
from ghga_event_schemas .validation import get_validated_payload
21
21
from hexkit .custom_types import Ascii , JsonObject
22
22
from hexkit .protocols .eventsub import EventSubscriberProtocol
23
- from pydantic import Field
24
23
25
24
from ns .ports .inbound .notifier import NotifierPort
26
25
27
26
28
27
class EventSubTranslatorConfig (NotificationEventsConfig ):
29
28
"""Config for the event subscriber"""
30
29
31
- notification_topic : str = Field (
32
- default = ...,
33
- description = "Name of the event topic used to track notification events" ,
34
- examples = ["notifications" ],
35
- )
36
- notification_type : str = Field (
37
- default = ...,
38
- description = "The type to use for events containing content to be sent" ,
39
- examples = ["notification" ],
40
- )
41
-
42
30
43
31
class EventSubTranslator (EventSubscriberProtocol ):
44
32
"""A translator that can consume Notification events"""
You can’t perform that action at this time.
0 commit comments