Skip to content

Commit

Permalink
Merge pull request #236 from amccarthy1/omitempty
Browse files Browse the repository at this point in the history
Fix omitempty typos in JSON struct tags
  • Loading branch information
hilary authored Jun 21, 2019
2 parents 61e36fc + 789fc87 commit f5f306b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const (

// Resource represent a single resource for associating/disassociating with tags
type Resource struct {
ID string `json:"resource_id,omit_empty"`
Type ResourceType `json:"resource_type,omit_empty"`
ID string `json:"resource_id,omitempty"`
Type ResourceType `json:"resource_type,omitempty"`
}

// TaggedResources represent the set of resources a tag is attached to
Expand Down

0 comments on commit f5f306b

Please sign in to comment.