Skip to content

Commit ea53a42

Browse files
Dakshclaude
andcommitted
fix: exclude null fields from team usage stats request JSON
Add @JsonInclude(NON_NULL) to prevent Jackson from serializing null values in the request body, which was causing 404 errors from the API. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e7edea3 commit ea53a42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/io/getstream/chat/java/models/TeamUsageStats.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.getstream.chat.java.models;
22

3+
import com.fasterxml.jackson.annotation.JsonInclude;
34
import com.fasterxml.jackson.annotation.JsonProperty;
45
import io.getstream.chat.java.models.TeamUsageStats.QueryTeamUsageStatsRequestData.QueryTeamUsageStatsRequest;
56
import io.getstream.chat.java.models.framework.StreamRequest;
@@ -148,6 +149,7 @@ public static class DailyValue {
148149
buildMethodName = "internalBuild")
149150
@Getter
150151
@EqualsAndHashCode
152+
@JsonInclude(JsonInclude.Include.NON_NULL)
151153
public static class QueryTeamUsageStatsRequestData {
152154
/**
153155
* Month in YYYY-MM format (e.g., '2026-01'). Mutually exclusive with start_date/end_date.

0 commit comments

Comments
 (0)