From 12cf2ac265dd842db8c1702ff063b07f3df6b7cb Mon Sep 17 00:00:00 2001 From: Oh-JunTaek <143782929+Oh-JunTaek@users.noreply.github.com> Date: Tue, 24 Dec 2024 14:54:46 +0900 Subject: [PATCH] chore: dto Optional add --- app/dto/resume_dto.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/dto/resume_dto.py b/app/dto/resume_dto.py index 086a58d..a382948 100644 --- a/app/dto/resume_dto.py +++ b/app/dto/resume_dto.py @@ -138,13 +138,12 @@ class ResumeResponseDto(BaseModel): position: str techStack: List[str] aboutMe: str - tags: Optional[List[str]] # null 가능 - workExperiences: List[WorkExperience] - # projects: List[ProjectResponse] + tags: Optional[List[str]] + workExperiences: Optional[List[WorkExperience]] projects: List[Union[ProjectUpdate, StarProjectUpdate, GitfolioProjectUpdate]] - links: Optional[List[Link]] # null 가능 - educations: List[Education] - certificates: List[Certificate] + links: Optional[List[Link]] + educations: Optional[List[Education]] + certificates: Optional[List[Certificate]] class updateResumeDto(BaseModel): template: str @@ -157,11 +156,11 @@ class updateResumeDto(BaseModel): techStack: List[str] aboutMe: str tags: Optional[List[str]] # null 가능 - workExperiences: List[WorkExperience] + workExperiences: Optional[List[WorkExperience]] projects: List[Union[Project, StarProject, GitfolioProject]] # 추가된 필드 links: Optional[List[Link]] # null 가능 - educations: List[Education] - certificates: List[Certificate] + educations: Optional[List[Education]] + certificates: Optional[List[Certificate]] class UpdateRequestDto(BaseModel): selectedText: str