diff --git a/huntflow_api_client/models/common.py b/huntflow_api_client/models/common.py index 475e1f7..dd614e8 100644 --- a/huntflow_api_client/models/common.py +++ b/huntflow_api_client/models/common.py @@ -29,17 +29,18 @@ def jsonable_dict( round_trip: bool = False, warnings: bool = True, ) -> Dict[str, Any]: - params = { - "include": include, - "exclude": exclude, - "by_alias": by_alias, - "exclude_unset": exclude_unset, - "exclude_defaults": exclude_defaults, - "exclude_none": exclude_none, - "round_trip": round_trip, - "warnings": warnings, - } - return json.loads(self.model_dump_json(**params)) # type: ignore + return json.loads( + self.model_dump_json( + include=include, + exclude=exclude, + by_alias=by_alias, + exclude_unset=exclude_unset, + exclude_defaults=exclude_defaults, + exclude_none=exclude_none, + round_trip=round_trip, + warnings=warnings, + ) + ) # type: ignore class PaginatedResponse(BaseModel): diff --git a/huntflow_api_client/models/request/resume.py b/huntflow_api_client/models/request/resume.py index d5ba177..2739332 100644 --- a/huntflow_api_client/models/request/resume.py +++ b/huntflow_api_client/models/request/resume.py @@ -6,15 +6,12 @@ class ApplicantResumeUpdateData(BaseModel): - body: Optional[str] = Field(None, description="Resume text") + body: Optional[str] = Field(..., description="Resume text") class ApplicantResumeUpdateRequest(JsonRequestModel): - account_source: Optional[PositiveInt] = Field(None, description="Resume source ID") - data: Optional[ApplicantResumeUpdateData] = Field( - None, - description="Resume data", - ) + account_source: Optional[PositiveInt] = Field(..., description="Resume source ID") + data: Optional[ApplicantResumeUpdateData] = Field(..., description="Resume data") files: Optional[List[PositiveInt]] = Field( [], max_length=1, diff --git a/huntflow_api_client/models/response/applicant_logs.py b/huntflow_api_client/models/response/applicant_logs.py index 15f1ee1..e62e433 100644 --- a/huntflow_api_client/models/response/applicant_logs.py +++ b/huntflow_api_client/models/response/applicant_logs.py @@ -32,7 +32,7 @@ class BaseSurveySchemaType(BaseModel): class SurveySchemaTypeQLogResponse(BaseSurveySchemaType): - title: Optional[str] = Field(None, description="Survey title") + title: Optional[str] = Field(..., description="Survey title") class ApplicantLogSurveyQuestionary(BaseModel): @@ -183,7 +183,7 @@ class CreateApplicantLogResponse(BaseModel): rejection_reason: Optional[int] = Field(None, description="Rejection reason ID") created: datetime = Field(..., description="Date and time of creation of the log") employment_date: Optional[date] = Field(None, description="Employment date") - applicant_offer: Optional[ApplicantOffer] = Field(None, description="Offer object") + applicant_offer: Optional[ApplicantOffer] = Field(..., description="Offer object") comment: Optional[str] = Field(None, description="Comment text") files: List[File] = Field([], description="List of files attached to the log") calendar_event: Optional[ApplicantLogCalendarEvent] = Field( diff --git a/huntflow_api_client/models/response/applicants.py b/huntflow_api_client/models/response/applicants.py index 8cfc58d..4c980a6 100644 --- a/huntflow_api_client/models/response/applicants.py +++ b/huntflow_api_client/models/response/applicants.py @@ -90,7 +90,7 @@ class ApplicantItem(Applicant): class ApplicantListResponse(PaginatedResponse): - total_items: Optional[int] = Field(None, description="Total number of items") + total_items: Optional[int] = Field(..., description="Total number of items") items: List[ApplicantItem] = Field(..., description="List of applicants") diff --git a/huntflow_api_client/models/response/coworkers.py b/huntflow_api_client/models/response/coworkers.py index ffeb94c..44a954e 100644 --- a/huntflow_api_client/models/response/coworkers.py +++ b/huntflow_api_client/models/response/coworkers.py @@ -27,5 +27,5 @@ class ConfigDict: class CoworkersListResponse(PaginatedResponse): - total_items: Optional[int] = Field(None, description="Total number of items") + total_items: Optional[int] = Field(..., description="Total number of items") items: List[CoworkerResponse] = Field(..., description="List of coworkers") diff --git a/huntflow_api_client/models/response/vacancies.py b/huntflow_api_client/models/response/vacancies.py index 7c2112c..bc03c24 100644 --- a/huntflow_api_client/models/response/vacancies.py +++ b/huntflow_api_client/models/response/vacancies.py @@ -58,7 +58,7 @@ def dict(self, *args, **kwargs): # type: ignore class VacancyListResponse(PaginatedResponse): - total_items: Optional[int] = Field(None, description="Total number of items") + total_items: Optional[int] = Field(..., description="Total number of items") items: List[VacancyItem]