From a02661bac700802e9f43f7fc340c8b5cb19b012a Mon Sep 17 00:00:00 2001 From: birdieHyun Date: Fri, 22 Sep 2023 16:07:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20api=20optional=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#299)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../be/store/controller/StoreControllerTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/java/upbrella/be/store/controller/StoreControllerTest.java b/src/test/java/upbrella/be/store/controller/StoreControllerTest.java index fcee212b..8b7ddc29 100644 --- a/src/test/java/upbrella/be/store/controller/StoreControllerTest.java +++ b/src/test/java/upbrella/be/store/controller/StoreControllerTest.java @@ -577,9 +577,11 @@ void updateStoreTest() throws Exception { fieldWithPath("businessHour").type(JsonFieldType.STRING) .description("영업 시간"), fieldWithPath("contactNumber").type(JsonFieldType.STRING) - .description("연락처"), + .description("연락처") + .optional(), fieldWithPath("instagramId").type(JsonFieldType.STRING) - .description("인스타그램 아이디"), + .description("인스타그램 아이디") + .optional(), fieldWithPath("latitude").type(JsonFieldType.NUMBER) .description("위도"), fieldWithPath("longitude").type(JsonFieldType.NUMBER) @@ -587,7 +589,8 @@ void updateStoreTest() throws Exception { fieldWithPath("content").type(JsonFieldType.STRING) .description("내용"), fieldWithPath("password").type(JsonFieldType.STRING) - .description("비밀번호"), + .description("비밀번호") + .optional(), fieldWithPath("businessHours").type(JsonFieldType.ARRAY) .description("영업 시간"), fieldWithPath("businessHours[].date").type(JsonFieldType.STRING)