Skip to content

Commit

Permalink
try to fix validation?
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Apr 28, 2023
1 parent ba0bf06 commit d7a7d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydantic/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def __get_validators__(cls) -> 'CallableGenerator':

@classmethod
def validate(cls, value: Union[str]) -> str:
return validate_email(value)[1]
return EmailStr(validate_email(value)[1])


class NameEmail(Representation):
Expand Down

0 comments on commit d7a7d2a

Please sign in to comment.