Skip to content

Commit

Permalink
Use json encoding for vcs-repo request params
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Aug 1, 2024
1 parent de2e5b8 commit 3d40746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ type StackList struct {

// StackVCSRepo represents the version control system repository for a stack.
type StackVCSRepo struct {
Identifier string `jsonapi:"attr,identifier"`
Branch string `jsonapi:"attr,branch"`
GHAInstallationID string `jsonapi:"attr,github-app-installation-id"`
OAuthTokenID string `jsonapi:"attr,oauth-token-id"`
Identifier string `json:"identifier"`
Branch string `json:"branch,omitempty"`
GHAInstallationID string `json:"github-app-installation-id,omitempty"`
OAuthTokenID string `json:"oauth-token-id,omitempty"`
}

// Stack represents a stack.
Expand Down

0 comments on commit 3d40746

Please sign in to comment.