From 2f50d9186011d45f1279b09a57bf913ff0502bfa Mon Sep 17 00:00:00 2001 From: Luna Duclos Date: Thu, 3 Feb 2022 15:45:37 +0100 Subject: [PATCH 1/2] Update objects_set_uuid_metadata.go --- objects_set_uuid_metadata.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/objects_set_uuid_metadata.go b/objects_set_uuid_metadata.go index 838c93d3..36356ff8 100644 --- a/objects_set_uuid_metadata.go +++ b/objects_set_uuid_metadata.go @@ -45,11 +45,11 @@ func newSetUUIDMetadataBuilderWithContext(pubnub *PubNub, // SetUUIDMetadataBody is the input to update user type SetUUIDMetadataBody struct { - Name string `json:"name"` - ExternalID string `json:"externalId"` - ProfileURL string `json:"profileUrl"` - Email string `json:"email"` - Custom map[string]interface{} `json:"custom"` + Name string `json:"name,omitEmpty"` + ExternalID string `json:"externalId,omitEmpty"` + ProfileURL string `json:"profileUrl,omitEmpty"` + Email string `json:"email,omitEmpty"` + Custom map[string]interface{} `json:"custom,omitEmpty"` } func (b *setUUIDMetadataBuilder) UUID(uuid string) *setUUIDMetadataBuilder { From 554c2a96ceaf6403b4a821b2d421ecf6f5448de6 Mon Sep 17 00:00:00 2001 From: Luna Duclos Date: Fri, 4 Feb 2022 14:05:39 +0100 Subject: [PATCH 2/2] Typo fix --- objects_set_uuid_metadata.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/objects_set_uuid_metadata.go b/objects_set_uuid_metadata.go index 36356ff8..c162f684 100644 --- a/objects_set_uuid_metadata.go +++ b/objects_set_uuid_metadata.go @@ -45,11 +45,11 @@ func newSetUUIDMetadataBuilderWithContext(pubnub *PubNub, // SetUUIDMetadataBody is the input to update user type SetUUIDMetadataBody struct { - Name string `json:"name,omitEmpty"` - ExternalID string `json:"externalId,omitEmpty"` - ProfileURL string `json:"profileUrl,omitEmpty"` - Email string `json:"email,omitEmpty"` - Custom map[string]interface{} `json:"custom,omitEmpty"` + Name string `json:"name,omitempty"` + ExternalID string `json:"externalId,omitempty"` + ProfileURL string `json:"profileUrl,omitempty"` + Email string `json:"email,omitempty"` + Custom map[string]interface{} `json:"custom,omitempty"` } func (b *setUUIDMetadataBuilder) UUID(uuid string) *setUUIDMetadataBuilder {