Skip to content

Commit c6bfc1f

Browse files
committed
fix: add omit struct tag back
1 parent 13a0555 commit c6bfc1f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

organization.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ type Organization struct {
9999
SendPassingStatusesForUntriggeredSpeculativePlans bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans"`
100100
RemainingTestableCount int `jsonapi:"attr,remaining-testable-count"`
101101
// Optional: If enabled, SendPassingStatusesForUntriggeredSpeculativePlans needs to be false.
102-
AggregatedCommitStatusEnabled bool `jsonapi:"attr,aggregated-commit-status-enabled"`
102+
AggregatedCommitStatusEnabled bool `jsonapi:"attr,aggregated-commit-status-enabled,omitempty"`
103103
// Note: This will be false for TFE versions older than v202211, where the setting was introduced.
104104
// On those TFE versions, safe delete does not exist, so ALL deletes will be force deletes.
105105
AllowForceDeleteWorkspaces bool `jsonapi:"attr,allow-force-delete-workspaces"`
@@ -216,7 +216,7 @@ type OrganizationCreateOptions struct {
216216
SendPassingStatusesForUntriggeredSpeculativePlans *bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans,omitempty"`
217217

218218
// Optional: If enabled, SendPassingStatusesForUntriggeredSpeculativePlans needs to be false.
219-
AggregatedCommitStatusEnabled *bool `jsonapi:"attr,aggregated-commit-status-enabled"`
219+
AggregatedCommitStatusEnabled *bool `jsonapi:"attr,aggregated-commit-status-enabled,omitempty"`
220220

221221
// Optional: AllowForceDeleteWorkspaces toggles behavior of allowing workspace admins to delete workspaces with resources under management.
222222
AllowForceDeleteWorkspaces *bool `jsonapi:"attr,allow-force-delete-workspaces,omitempty"`
@@ -261,7 +261,7 @@ type OrganizationUpdateOptions struct {
261261
SendPassingStatusesForUntriggeredSpeculativePlans *bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans,omitempty"`
262262

263263
// Optional: If enabled, SendPassingStatusesForUntriggeredSpeculativePlans needs to be false.
264-
AggregatedCommitStatusEnabled *bool `jsonapi:"attr,aggregated-commit-status-enabled"`
264+
AggregatedCommitStatusEnabled *bool `jsonapi:"attr,aggregated-commit-status-enabled,omitempty"`
265265

266266
// Optional: AllowForceDeleteWorkspaces toggles behavior of allowing workspace admins to delete workspaces with resources under management.
267267
AllowForceDeleteWorkspaces *bool `jsonapi:"attr,allow-force-delete-workspaces,omitempty"`

0 commit comments

Comments
 (0)