From dce5fbb16078d74c8eb0b59356a8bce121bf3e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Axel=20Lacuesta?= Date: Fri, 17 Jan 2025 10:36:19 -0800 Subject: [PATCH] SAIDP-883: ignore new unknown properties --- .../secureauth/sarestapi/data/Response/UserProfileResponse.java | 2 ++ .../sarestapi/data/UserProfile/UserProfileProperty.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/org/secureauth/sarestapi/data/Response/UserProfileResponse.java b/src/main/java/org/secureauth/sarestapi/data/Response/UserProfileResponse.java index 139daf5b..daf43a44 100644 --- a/src/main/java/org/secureauth/sarestapi/data/Response/UserProfileResponse.java +++ b/src/main/java/org/secureauth/sarestapi/data/Response/UserProfileResponse.java @@ -1,5 +1,6 @@ package org.secureauth.sarestapi.data.Response; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import org.secureauth.sarestapi.data.Response.BaseResponse; import org.secureauth.sarestapi.data.UserProfile.*; @@ -17,6 +18,7 @@ */ @XmlRootElement @JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) public class UserProfileResponse extends BaseResponse{ private String userId; private Map properties = new HashMap<>(); diff --git a/src/main/java/org/secureauth/sarestapi/data/UserProfile/UserProfileProperty.java b/src/main/java/org/secureauth/sarestapi/data/UserProfile/UserProfileProperty.java index efc79458..27b19469 100644 --- a/src/main/java/org/secureauth/sarestapi/data/UserProfile/UserProfileProperty.java +++ b/src/main/java/org/secureauth/sarestapi/data/UserProfile/UserProfileProperty.java @@ -1,11 +1,13 @@ package org.secureauth.sarestapi.data.UserProfile; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; /** * Created by rrowcliffe on 5/1/16. */ @JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) public class UserProfileProperty { private String value; private String isWritable;