|
1 | 1 | from datetime import date, datetime |
2 | 2 | from typing import List, Optional, Union |
3 | 3 |
|
4 | | -from pydantic import BaseModel, ConfigDict, EmailStr, Field, PositiveInt |
| 4 | +from pydantic import BaseModel, ConfigDict, Field, PositiveInt |
5 | 5 |
|
6 | 6 | from huntflow_api_client.models.common import Applicant, PaginatedResponse |
7 | 7 | from huntflow_api_client.models.consts import AgreementState as AgreementStateEnum |
@@ -73,7 +73,7 @@ class ApplicantItem(Applicant): |
73 | 73 | None, |
74 | 74 | description="Date and time of adding an applicant", |
75 | 75 | ) |
76 | | - email: Union[EmailStr, str, None] = Field( |
| 76 | + email: Union[str, str, None] = Field( |
77 | 77 | None, |
78 | 78 | description="Email address", |
79 | 79 | ) |
@@ -121,7 +121,7 @@ class ApplicantSearchItem(BaseModel): |
121 | 121 | birthday: Optional[date] = Field(None, description="Date of birth") |
122 | 122 | phone: Optional[str] = Field(None, description="Phone number") |
123 | 123 | skype: Optional[str] = Field(None, description="Skype login") |
124 | | - email: Union[EmailStr, str, None] = Field(None, description="Email address") |
| 124 | + email: Union[str, str, None] = Field(None, description="Email address") |
125 | 125 | money: Optional[str] = Field(None, description="Salary expectation") |
126 | 126 | position: Optional[str] = Field(None, description="Candidate’s occupation") |
127 | 127 | company: Optional[str] = Field(None, description="Candidate’s place of work") |
|
0 commit comments