Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SetUUIDMetadata when no profile, email or name is set #121

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

luna-duclos
Copy link

The REST API for SetUUIDMetadata allows those fields to be unset or null but validates that if they are set they are valid.
The Go SDK always sets those fields, resulting in calls such as this one to fail:

s.pubnubClient.SetUUIDMetadata().UUID(userInfo.EmbarkUser.ExternalID.String()).Custom(pubnubUserInfoMap).Execute()

This should work, and the way to make this work is to add the omitEmpty option

@kleewho
Copy link
Contributor

kleewho commented Feb 4, 2022

@luna-duclos Thanks for the PR. We'll look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants