Skip to content

Commit

Permalink
Fix omitempty typos in JSON struct tags
Browse files Browse the repository at this point in the history
These fields were incorrectly tagged with `omit_empty`, when the correct
tag is `omitempty`.
  • Loading branch information
Adam McCarthy committed Jun 16, 2019
1 parent 3417cdf commit 789fc87
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 789fc87

Please sign in to comment.