This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push:
new 6d7c38feef [SYNCOPE-1833] Do not include the 'attrbutes' container
with SCIM payloads
6d7c38feef is described below
commit 6d7c38feef16cfc43c7c778cd0d8393ba0f24128
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Oct 21 11:37:41 2024 +0200
[SYNCOPE-1833] Do not include the 'attrbutes' container with SCIM payloads
---
.../org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java
b/ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java
index 367f722ccd..570ee80053 100644
---
a/ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java
+++
b/ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java
@@ -18,7 +18,9 @@
*/
package org.apache.syncope.ext.scimv2.api.data;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
@@ -28,10 +30,16 @@ public class SCIMExtensionInfo extends SCIMBean {
private final Map<String, String> attributes = new HashMap<>();
+ @JsonValue
public Map<String, String> getAttributes() {
return attributes;
}
+ @JsonAnySetter
+ public void add(final String key, final String value) {
+ attributes.put(key, value);
+ }
+
@JsonIgnore
public boolean isEmpty() {
return attributes.isEmpty();