We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb2f1ea commit e17cfb0Copy full SHA for e17cfb0
jupyter_scheduler/models.py
@@ -41,13 +41,13 @@ class NotificationsConfig(BaseModel):
41
include_output: bool = False
42
43
@validator("send_to")
44
- def validate_send_to(self, send_to):
+ def validate_send_to(cls, send_to):
45
if len(send_to) > 1000:
46
raise ValueError("Too many email addresses. Maximum allowed is 1000.")
47
return send_to
48
49
@validator("events")
50
- def validate_events(self, events):
+ def validate_events(cls, events):
51
if len(events) > 1000:
52
raise ValueError("Too many events. Maximum allowed is 1000.")
53
return events
0 commit comments