Skip to content

Commit

Permalink
removed validator function for subtype (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabuhish authored Jun 25, 2023
1 parent 0b51ec1 commit 0f745cb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions fastapi_mail/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ def validate_file(cls, v):
)
return temp

@validator("subtype")
def validate_subtype(cls, value, values, config, field):
"""
Validate subtype field
"""
if values["template_body"]:
return MessageType.html
return value

@root_validator
def validate_alternative_body(cls, values):
"""
Expand Down

0 comments on commit 0f745cb

Please sign in to comment.