From 47cad1e75e402d9965d2904055aee5028e8aded7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=98=88=EB=A6=B0?= Date: Wed, 12 Aug 2026 23:20:38 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Swagger=20=EC=84=B1=EA=B3=B5=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=EC=97=90=20error=20=ED=95=84=EB=93=9C?= =?UTF-8?q?=EA=B0=80=20=EB=85=B8=EC=B6=9C=EB=90=98=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/nexters/death/global/payload/ApiResponse.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/nexters/death/global/payload/ApiResponse.java b/src/main/java/com/nexters/death/global/payload/ApiResponse.java index 06bb1ee..d74a33f 100644 --- a/src/main/java/com/nexters/death/global/payload/ApiResponse.java +++ b/src/main/java/com/nexters/death/global/payload/ApiResponse.java @@ -2,6 +2,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.nexters.death.global.exception.ErrorResponse; +import io.swagger.v3.oas.annotations.media.Schema; import org.jspecify.annotations.Nullable; import org.springframework.http.HttpStatus; @@ -9,9 +10,9 @@ @JsonInclude(JsonInclude.Include.NON_NULL) public record ApiResponse( - int status, + @Schema(example = "200") int status, @Nullable T data, - @Nullable ErrorResponse error, + @Nullable @Schema(hidden = true) ErrorResponse error, LocalDateTime timestamp ) { public static ApiResponse success(@Nullable T data) {