Skip to content

Commit 60c6d32

Browse files
committed
[SYNCOPE-1833] Do not include the 'attrbutes' container with SCIM payloads
1 parent 77fb2e6 commit 60c6d32

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/data/SCIMExtensionInfo.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
*/
1919
package org.apache.syncope.ext.scimv2.api.data;
2020

21+
import com.fasterxml.jackson.annotation.JsonAnySetter;
2122
import com.fasterxml.jackson.annotation.JsonIgnore;
23+
import com.fasterxml.jackson.annotation.JsonValue;
2224
import java.util.HashMap;
2325
import java.util.Map;
2426

@@ -28,10 +30,16 @@ public class SCIMExtensionInfo extends SCIMBean {
2830

2931
private final Map<String, String> attributes = new HashMap<>();
3032

33+
@JsonValue
3134
public Map<String, String> getAttributes() {
3235
return attributes;
3336
}
3437

38+
@JsonAnySetter
39+
public void add(final String key, final String value) {
40+
attributes.put(key, value);
41+
}
42+
3543
@JsonIgnore
3644
public boolean isEmpty() {
3745
return attributes.isEmpty();

0 commit comments

Comments
 (0)