Fix omitempty typos in JSON struct tags

These fields were incorrectly tagged with `omit_empty`, when the correct
tag is `omitempty`.
This commit is contained in:
Adam McCarthy 2019-06-16 11:19:17 -07:00
parent 3417cdfa12
commit 789fc87f37
1 changed files with 2 additions and 2 deletions

View File

@ -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