diff --git a/backend/app/schemas.py b/backend/app/schemas.py index b9ecd4f..76c496f 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -64,7 +64,7 @@ class OrgMemberCreate(BaseModel): password: str | None = Field(default=None, min_length=8, max_length=128) @model_validator(mode="after") - def password_required_without_invite(self) -> OrgMemberCreate: + def password_required_without_invite(self): if not self.send_invitation and not self.password: raise ValueError("Password is required when not sending an invitation.") return self