Skip to content

Commit

Permalink
Whoops, forgot omitempty in the create/update options!
Browse files Browse the repository at this point in the history
  • Loading branch information
nfagerlund committed Nov 1, 2023
1 parent da23b4d commit a902d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ type WorkspaceCreateOptions struct {

// Optional: Whether to automatically apply changes for runs that are created by run triggers
// from another workspace.
AutoApplyRunTrigger *bool `jsonapi:"attr,auto-apply-run-trigger"`
AutoApplyRunTrigger *bool `jsonapi:"attr,auto-apply-run-trigger,omitempty"`

// Optional: A description for the workspace.
Description *string `jsonapi:"attr,description,omitempty"`
Expand Down Expand Up @@ -427,7 +427,7 @@ type WorkspaceUpdateOptions struct {

// Optional: Whether to automatically apply changes for runs that are created by run triggers
// from another workspace.
AutoApplyRunTrigger *bool `jsonapi:"attr,auto-apply-run-trigger"`
AutoApplyRunTrigger *bool `jsonapi:"attr,auto-apply-run-trigger,omitempty"`

// Optional: A new name for the workspace, which can only include letters, numbers, -,
// and _. This will be used as an identifier and must be unique in the
Expand Down

0 comments on commit a902d3f

Please sign in to comment.