mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Make email a required field for the email_data_schema.
This commit is contained in:
@@ -319,7 +319,7 @@ class EmailDataSchema(ma.Schema):
|
||||
class Meta:
|
||||
strict = True
|
||||
|
||||
email = fields.Str(required=False)
|
||||
email = fields.Str(required=True)
|
||||
|
||||
@validates('email')
|
||||
def validate_email(self, value):
|
||||
|
||||
Reference in New Issue
Block a user