Skip to content

Commit

Permalink
fix(stacks/vcs): StackVCSRepo nested-struct incorrectly marshalling a…
Browse files Browse the repository at this point in the history
…ttributes

hashicorp/jsonapi and by extension google/jsonapi packages have issues
serializing nested-structs that are not relationship, but attr.
Converting to json struct tag directive for the time being
.
  • Loading branch information
mjyocca committed Jan 9, 2025
1 parent 2b26a23 commit 208cd52
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 @@ -69,10 +69,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,omitempty"`
GHAInstallationID string `jsonapi:"attr,github-app-installation-id,omitempty"`
OAuthTokenID string `jsonapi:"attr,oauth-token-id,omitempty"`
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 208cd52

Please sign in to comment.