From 1a2690a20d56ef84816f26165bcc8ef60cf21538 Mon Sep 17 00:00:00 2001 From: Mingyu Song <100754581+mikekks@users.noreply.github.com> Date: Sun, 1 Sep 2024 01:00:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20nullable?= =?UTF-8?q?=20=ED=95=98=EA=B2=8C=20=EC=88=98=EC=A0=95=20(#352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/request/MeetingV2ApplyMeetingDto.java | 11 +++++------ .../v2/dto/request/PostV2CreatePostBodyDto.java | 1 - .../v2/dto/request/PostV2UpdatePostBodyDto.java | 17 ++++++++--------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/request/MeetingV2ApplyMeetingDto.java b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/request/MeetingV2ApplyMeetingDto.java index e2c61085..a6857897 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/request/MeetingV2ApplyMeetingDto.java +++ b/main/src/main/java/org/sopt/makers/crew/main/meeting/v2/dto/request/MeetingV2ApplyMeetingDto.java @@ -9,12 +9,11 @@ @AllArgsConstructor @Schema(description = "모임 지원 request body dto") public class MeetingV2ApplyMeetingDto { - @Schema(example = "4", required = true, description = "모임 ID") - @NotNull - private Integer meetingId; + @Schema(example = "4", required = true, description = "모임 ID") + @NotNull + private Integer meetingId; - @Schema(example = "꼭 지원하고 싶습니다.", description = "지원 각오") - @NotNull - private String content; + @Schema(example = "꼭 지원하고 싶습니다.", description = "지원 각오") + private String content; } diff --git a/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2CreatePostBodyDto.java b/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2CreatePostBodyDto.java index 49fbb6fc..b508ecf3 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2CreatePostBodyDto.java +++ b/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2CreatePostBodyDto.java @@ -24,7 +24,6 @@ public class PostV2CreatePostBodyDto { required = true, description = "게시글 이미지 리스트" ) - @NotEmpty private String[] images; @Schema(example = "api 가 터졌다고? 깃이 터졌다고?", required = true, description = "게시글 내용") diff --git a/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2UpdatePostBodyDto.java b/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2UpdatePostBodyDto.java index d32c3af1..ec9236ee 100644 --- a/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2UpdatePostBodyDto.java +++ b/main/src/main/java/org/sopt/makers/crew/main/post/v2/dto/request/PostV2UpdatePostBodyDto.java @@ -10,15 +10,14 @@ @Schema(description = "게시물 수정 request body dto") public class PostV2UpdatePostBodyDto { - @Schema(description = "모임 게시글 제목", example = "알고보면 쓸데있는 개발 프로세스") - @NotNull - private final String title; + @Schema(description = "모임 게시글 제목", example = "알고보면 쓸데있는 개발 프로세스") + @NotNull + private final String title; - @Schema(description = "모임 게시글 내용", example = "api가 터졌다고 ? 깃이 터졌다고?") - @NotNull - private final String contents; + @Schema(description = "모임 게시글 내용", example = "api가 터졌다고 ? 깃이 터졌다고?") + @NotNull + private final String contents; - @Schema(description = "모임 게시글 이미지 리스트", example = "[\"url1\", \"url2\"]") - @NotNull - private final String[] images; + @Schema(description = "모임 게시글 이미지 리스트", example = "[\"url1\", \"url2\"]") + private final String[] images; }