From 789fc87f376103a9d9bf59f7c5e1af6bce31d9ab Mon Sep 17 00:00:00 2001 From: Adam McCarthy Date: Sun, 16 Jun 2019 11:19:17 -0700 Subject: [PATCH] Fix omitempty typos in JSON struct tags These fields were incorrectly tagged with `omit_empty`, when the correct tag is `omitempty`. --- tags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tags.go b/tags.go index 0a74b125..6651e6d1 100644 --- a/tags.go +++ b/tags.go @@ -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