Skip to content

Commit 7d76fa3

Browse files
fix: add @JsonInclude(NON_NULL) to MarkStepCompletedRequest
Prevents null metrics fields from serializing as explicit "null" values in JSON. Matches the pattern used by all other request types in the SDK.
1 parent 790d28e commit 7d76fa3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Media governance types: `MediaGovernanceConfig`, `MediaGovernanceStatus`
1414
- Media policy category constants: `CATEGORY_MEDIA_SAFETY`, `CATEGORY_MEDIA_BIOMETRIC`, `CATEGORY_MEDIA_PII`, `CATEGORY_MEDIA_DOCUMENT`
1515
- `PolicyCategory` enum values: `MEDIA_SAFETY`, `MEDIA_BIOMETRIC`, `MEDIA_PII`, `MEDIA_DOCUMENT`
16-
- StepComplete now accepts post-execution metrics (`tokens_in`, `tokens_out`, `cost_usd`)
16+
- `MarkStepCompletedRequest` now accepts post-execution metrics (`tokens_in`, `tokens_out`, `cost_usd`)
1717

1818
---
1919

src/main/java/com/getaxonflow/sdk/types/workflow/WorkflowTypes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import com.fasterxml.jackson.annotation.JsonCreator;
1919
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20+
import com.fasterxml.jackson.annotation.JsonInclude;
2021
import com.fasterxml.jackson.annotation.JsonProperty;
2122
import com.fasterxml.jackson.annotation.JsonValue;
2223

@@ -845,6 +846,7 @@ public int getTotal() {
845846
* Request to mark a step as completed.
846847
*/
847848
@JsonIgnoreProperties(ignoreUnknown = true)
849+
@JsonInclude(JsonInclude.Include.NON_NULL)
848850
public static final class MarkStepCompletedRequest {
849851

850852
@JsonProperty("output")

0 commit comments

Comments
 (0)