Commit 4eae656
committed
fix: restore @JsonAnyGetter functionality for additionalFields serialization
The ObjectMapper configuration added in PR #205 set PropertyAccessor.GETTER
visibility to NONE, which disabled ALL getter methods including those
annotated with @JsonAnyGetter. This broke serialization of additionalFields
in channels and messages, causing custom object fields to appear as empty.
Changed to use field-based serialization while still respecting explicit
Jackson annotations (@JsonAnyGetter, @JsonProperty, etc):
- Set PropertyAccessor.ALL to NONE (disable auto-detection)
- Set PropertyAccessor.FIELD to ANY (use field-based serialization)
This preserves the intent of PR #205 (avoiding getter auto-detection)
while fixing additionalFields serialization.
Fixes: #2051 parent 78c29e1 commit 4eae656
File tree
2 files changed
+6
-1
lines changed- src
- main/java/io/getstream/chat/java/services/framework
- test/java/io/getstream/chat/java
2 files changed
+6
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| |||
0 commit comments