diff --git a/src/main/java/com/numberone/backend/domain/token/dto/response/KakaoInfoResponse.java b/src/main/java/com/numberone/backend/domain/token/dto/response/KakaoInfoResponse.java index ddf88a50..694fb425 100644 --- a/src/main/java/com/numberone/backend/domain/token/dto/response/KakaoInfoResponse.java +++ b/src/main/java/com/numberone/backend/domain/token/dto/response/KakaoInfoResponse.java @@ -1,5 +1,6 @@ package com.numberone.backend.domain.token.dto.response; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; @@ -8,6 +9,7 @@ @ToString @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) +@JsonIgnoreProperties(ignoreUnknown = true) public class KakaoInfoResponse { private Long id; private String connected_at; @@ -17,6 +19,7 @@ public class KakaoInfoResponse { @ToString @Getter @NoArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public class Properties { private String nickname; private String profile_image; @@ -26,6 +29,7 @@ public class Properties { @ToString @Getter @NoArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public class KakaoAccount { static class profile { private String nickname; diff --git a/src/main/java/com/numberone/backend/domain/token/dto/response/NaverInfoResponse.java b/src/main/java/com/numberone/backend/domain/token/dto/response/NaverInfoResponse.java index 4cceb11b..c91273e2 100644 --- a/src/main/java/com/numberone/backend/domain/token/dto/response/NaverInfoResponse.java +++ b/src/main/java/com/numberone/backend/domain/token/dto/response/NaverInfoResponse.java @@ -1,5 +1,6 @@ package com.numberone.backend.domain.token.dto.response; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; @@ -8,6 +9,7 @@ @ToString @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) +@JsonIgnoreProperties(ignoreUnknown = true) public class NaverInfoResponse { private String resultcode; private String message; @@ -16,6 +18,7 @@ public class NaverInfoResponse { @ToString @Getter @NoArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public class Response { private String id; private String nickname;