Skip to content

Commit

Permalink
Add omitempty to startup script request struct (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
optik-aper authored Feb 28, 2024
1 parent 55109f1 commit 23320a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions startup_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ type StartupScript struct {

// StartupScriptReq is the user struct for create and update calls
type StartupScriptReq struct {
Name string `json:"name"`
Type string `json:"type"`
Script string `json:"script"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Script string `json:"script,omitempty"`
}

type startupScriptsBase struct {
Expand Down

0 comments on commit 23320a4

Please sign in to comment.