From 5a43996e5cece68cbc8c27106cecc3a45cf2c13c Mon Sep 17 00:00:00 2001 From: Paul Musgrave Date: Thu, 17 Oct 2024 09:55:13 -0400 Subject: [PATCH] Fix json serialization for slack_files --- .../hubspot/slack/client/models/blocks/SlackFileObjectIF.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slack-base/src/main/java/com/hubspot/slack/client/models/blocks/SlackFileObjectIF.java b/slack-base/src/main/java/com/hubspot/slack/client/models/blocks/SlackFileObjectIF.java index 9588a891..1d3a6882 100644 --- a/slack-base/src/main/java/com/hubspot/slack/client/models/blocks/SlackFileObjectIF.java +++ b/slack-base/src/main/java/com/hubspot/slack/client/models/blocks/SlackFileObjectIF.java @@ -1,5 +1,6 @@ package com.hubspot.slack.client.models.blocks; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import com.hubspot.immutables.style.HubSpotStyle; @@ -9,6 +10,7 @@ @Value.Immutable @HubSpotStyle @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) +@JsonInclude(JsonInclude.Include.NON_NULL) public interface SlackFileObjectIF { Optional getUrl(); Optional getId();