Commit 7e3ea73
authored
fix: Add JsonInclude annotation to notification records for proper serialization (#552)
Add @JsonInclude(JsonInclude.Include.NON_ABSENT) to ResourcesUpdatedNotification
and to LoggingMessageNotification
This ensures that absent (null/Optional.empty()) fields are excluded from JSON
serialization, preventing potential serialization issues with these MCP notification types.
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>1 parent bc3a925 commit 7e3ea73
File tree
1 file changed
+2
-0
lines changed- mcp/src/main/java/io/modelcontextprotocol/spec
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2203 | 2203 | | |
2204 | 2204 | | |
2205 | 2205 | | |
| 2206 | + | |
2206 | 2207 | | |
2207 | 2208 | | |
2208 | 2209 | | |
| |||
2224 | 2225 | | |
2225 | 2226 | | |
2226 | 2227 | | |
| 2228 | + | |
2227 | 2229 | | |
2228 | 2230 | | |
2229 | 2231 | | |
| |||
0 commit comments