diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/persistence/entity/BugAttachmentEntity.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/persistence/entity/BugAttachmentEntity.java index 4cb0dd2fd..be27964a2 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/persistence/entity/BugAttachmentEntity.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/persistence/entity/BugAttachmentEntity.java @@ -2,7 +2,6 @@ import jakarta.persistence.Column; import jakarta.persistence.Embeddable; -import jakarta.validation.constraints.NotNull; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok.Getter; @@ -14,7 +13,6 @@ @Embeddable public class BugAttachmentEntity { - @NotNull @Column(columnDefinition = "VARCHAR(300)") private String attachmentUrl; } diff --git a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/presentation/dto/request/CreateBugReportWebRequest.java b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/presentation/dto/request/CreateBugReportWebRequest.java index d54623666..556bf5a5c 100644 --- a/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/presentation/dto/request/CreateBugReportWebRequest.java +++ b/jobis-infrastructure/src/main/java/team/retum/jobis/domain/bug/presentation/dto/request/CreateBugReportWebRequest.java @@ -8,7 +8,9 @@ import team.retum.jobis.domain.bug.dto.request.CreateBugReportRequest; import team.retum.jobis.domain.bug.model.DevelopmentArea; +import java.util.Collections; import java.util.List; +import java.util.Objects; @Getter @NoArgsConstructor @@ -32,7 +34,7 @@ public CreateBugReportRequest toDomainRequest() { .title(this.title) .content(this.content) .developmentArea(this.developmentArea) - .attachmentUrls(this.attachmentUrls) + .attachmentUrls(Objects.requireNonNullElse(attachmentUrls, Collections.emptyList())) .build(); } }