Make email a required field for the email_data_schema.

This commit is contained in:
Rebecca Law
2016-07-08 10:57:20 +01:00
parent 36ecdca04c
commit f4976539e4
3 changed files with 34 additions and 6 deletions

View File

@@ -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):