Skip to content

Commit

Permalink
SAIDP-883: ignore new unknown properties
Browse files Browse the repository at this point in the history
  • Loading branch information
glacuesta-sa committed Jan 17, 2025
1 parent 465ca37 commit dce5fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.*;
Expand All @@ -17,6 +18,7 @@
*/
@XmlRootElement
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserProfileResponse extends BaseResponse{
private String userId;
private Map<String,UserProfileProperty> properties = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit dce5fbb

Please sign in to comment.