Skip to content

Commit 0f745cb

Browse files
authored
removed validator function for subtype (#188)
1 parent 0b51ec1 commit 0f745cb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

fastapi_mail/schemas.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ def validate_file(cls, v):
8888
)
8989
return temp
9090

91-
@validator("subtype")
92-
def validate_subtype(cls, value, values, config, field):
93-
"""
94-
Validate subtype field
95-
"""
96-
if values["template_body"]:
97-
return MessageType.html
98-
return value
99-
10091
@root_validator
10192
def validate_alternative_body(cls, values):
10293
"""

0 commit comments

Comments
 (0)