From 1bb0136a80fc85ef4229d7fd0b6a701fdf4ad8bb Mon Sep 17 00:00:00 2001 From: Abhinav Pappu Date: Sun, 8 Dec 2024 22:36:21 -0800 Subject: [PATCH] fix: remove omitempty directive from MonitorV2ActionInput.inline to prevent nondeterministic generation The MonitorV2ActionInput type is used by multiple mutations, only one of which includes the genqlient directive to include `omitempty` in the generated Go type. This results in the generated type sometimes including omitempty and sometimes not, depending on the order in which the GraphQL files are processed. --- client/internal/meta/operation/monitorv2.graphql | 1 - 1 file changed, 1 deletion(-) diff --git a/client/internal/meta/operation/monitorv2.graphql b/client/internal/meta/operation/monitorv2.graphql index f5e0276f..63920f55 100644 --- a/client/internal/meta/operation/monitorv2.graphql +++ b/client/internal/meta/operation/monitorv2.graphql @@ -354,7 +354,6 @@ mutation saveMonitorV2Relations( # @genqlient(for: "PrimitiveValueInput.string", omitempty: true) # @genqlient(for: "PrimitiveValueInput.timestamp", omitempty: true) # @genqlient(for: "PrimitiveValueInput.duration", omitempty: true) -# @genqlient(for: "MonitorV2ActionInput.inline", omitempty: true) # @genqlient(for: "MonitorV2ActionInput.email", omitempty: true) # @genqlient(for: "MonitorV2ActionInput.webhook", omitempty: true) # @genqlient(for: "MonitorV2ActionInput.iconUrl", omitempty: true)