diff --git a/validation/from_account.py b/validation/from_account.py index 099d222..a89546c 100644 --- a/validation/from_account.py +++ b/validation/from_account.py @@ -39,5 +39,5 @@ class FromAccount(BaseModel): if self.ebanking_name != self.account_name: raise ValueError(f'Ebanking name is different from account name') return self - phone_number: PhoneNumber - email: EmailStr \ No newline at end of file + phone_number: str = Field(..., min_length=8) + email: EmailStr #TODO change ? \ No newline at end of file