{"action":"opened","number":38,"pull_request":{"url":"https://api.github.com/repos/digitalocean/godo/pulls/38","id":33129955,"html_url":"https://github.com/digitalocean/godo/pull/38","diff_url":"https://github.com/digitalocean/godo/pull/38.diff","patch_url":"https://github.com/digitalocean/godo/pull/38.patch","issue_url":"https://api.github.com/repos/digitalocean/godo/issues/38","number":38,"state":"open","locked":false,"title":"Omit an empty value for user data to serialize properly.","user":{"login":"brycereitano","id":1928691,"avatar_url":"https://avatars.githubusercontent.com/u/1928691?v=3","gravatar_id":"","url":"https://api.github.com/users/brycereitano","html_url":"https://github.com/brycereitano","followers_url":"https://api.github.com/users/brycereitano/followers","following_url":"https://api.github.com/users/brycereitano/following{/other_user}","gists_url":"https://api.github.com/users/brycereitano/gists{/gist_id}","starred_url":"https://api.github.com/users/brycereitano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycereitano/subscriptions","organizations_url":"https://api.github.com/users/brycereitano/orgs","repos_url":"https://api.github.com/users/brycereitano/repos","events_url":"https://api.github.com/users/brycereitano/events{/privacy}","received_events_url":"https://api.github.com/users/brycereitano/received_events","type":"User","site_admin":false},"body":"#### What does this fix?\r\nAn issue with creating a droplet where the region does not support user data. Due to the string being empty and not sent as null it will cause the server to error out telling the user that the region does not support user data.\r\n\r\n#### Source\r\nDescribed in more detail by an issue created by me. #37 ","created_at":"2015-04-13T00:48:31Z","updated_at":"2015-04-13T00:48:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/digitalocean/godo/pulls/38/commits","review_comments_url":"https://api.github.com/repos/digitalocean/godo/pulls/38/comments","review_comment_url":"https://api.github.com/repos/digitalocean/godo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalocean/godo/issues/38/comments","statuses_url":"https://api.github.com/repos/digitalocean/godo/statuses/107613d25ba1badebdd0c586f49a6374290da25a","head":{"label":"brycereitano:bug/user_data_omitempty","ref":"bug/user_data_omitempty","sha":"107613d25ba1badebdd0c586f49a6374290da25a","user":{"login":"brycereitano","id":1928691,"avatar_url":"https://avatars.githubusercontent.com/u/1928691?v=3","gravatar_id":"","url":"https://api.github.com/users/brycereitano","html_url":"https://github.com/brycereitano","followers_url":"https://api.github.com/users/brycereitano/followers","following_url":"https://api.github.com/users/brycereitano/following{/other_user}","gists_url":"https://api.github.com/users/brycereitano/gists{/gist_id}","starred_url":"https://api.github.com/users/brycereitano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycereitano/subscriptions","organizations_url":"https://api.github.com/users/brycereitano/orgs","repos_url":"https://api.github.com/users/brycereitano/repos","events_url":"https://api.github.com/users/brycereitano/events{/privacy}","received_events_url":"https://api.github.com/users/brycereitano/received_events","type":"User","site_admin":false},"repo":{"id":33839222,"name":"godo","full_name":"brycereitano/godo","owner":{"login":"brycereitano","id":1928691,"avatar_url":"https://avatars.githubusercontent.com/u/1928691?v=3","gravatar_id":"","url":"https://api.github.com/users/brycereitano","html_url":"https://github.com/brycereitano","followers_url":"https://api.github.com/users/brycereitano/followers","following_url":"https://api.github.com/users/brycereitano/following{/other_user}","gists_url":"https://api.github.com/users/brycereitano/gists{/gist_id}","starred_url":"https://api.github.com/users/brycereitano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycereitano/subscriptions","organizations_url":"https://api.github.com/users/brycereitano/orgs","repos_url":"https://api.github.com/users/brycereitano/repos","events_url":"https://api.github.com/users/brycereitano/events{/privacy}","received_events_url":"https://api.github.com/users/brycereitano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brycereitano/godo","description":"DigitalOcean Go API client","fork":true,"url":"https://api.github.com/repos/brycereitano/godo","forks_url":"https://api.github.com/repos/brycereitano/godo/forks","keys_url":"https://api.github.com/repos/brycereitano/godo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brycereitano/godo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brycereitano/godo/teams","hooks_url":"https://api.github.com/repos/brycereitano/godo/hooks","issue_events_url":"https://api.github.com/repos/brycereitano/godo/issues/events{/number}","events_url":"https://api.github.com/repos/brycereitano/godo/events","assignees_url":"https://api.github.com/repos/brycereitano/godo/assignees{/user}","branches_url":"https://api.github.com/repos/brycereitano/godo/branches{/branch}","tags_url":"https://api.github.com/repos/brycereitano/godo/tags","blobs_url":"https://api.github.com/repos/brycereitano/godo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brycereitano/godo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brycereitano/godo/git/refs{/sha}","trees_url":"https://api.github.com/repos/brycereitano/godo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brycereitano/godo/statuses/{sha}","languages_url":"https://api.github.com/repos/brycereitano/godo/languages","stargazers_url":"https://api.github.com/repos/brycereitano/godo/stargazers","contributors_url":"https://api.github.com/repos/brycereitano/godo/contributors","subscribers_url":"https://api.github.com/repos/brycereitano/godo/subscribers","subscription_url":"https://api.github.com/repos/brycereitano/godo/subscription","commits_url":"https://api.github.com/repos/brycereitano/godo/commits{/sha}","git_commits_url":"https://api.github.com/repos/brycereitano/godo/git/commits{/sha}","comments_url":"https://api.github.com/repos/brycereitano/godo/comments{/number}","issue_comment_url":"https://api.github.com/repos/brycereitano/godo/issues/comments{/number}","contents_url":"https://api.github.com/repos/brycereitano/godo/contents/{+path}","compare_url":"https://api.github.com/repos/brycereitano/godo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brycereitano/godo/merges","archive_url":"https://api.github.com/repos/brycereitano/godo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brycereitano/godo/downloads","issues_url":"https://api.github.com/repos/brycereitano/godo/issues{/number}","pulls_url":"https://api.github.com/repos/brycereitano/godo/pulls{/number}","milestones_url":"https://api.github.com/repos/brycereitano/godo/milestones{/number}","notifications_url":"https://api.github.com/repos/brycereitano/godo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brycereitano/godo/labels{/name}","releases_url":"https://api.github.com/repos/brycereitano/godo/releases{/id}","created_at":"2015-04-13T00:07:25Z","updated_at":"2015-04-13T00:07:27Z","pushed_at":"2015-04-13T00:46:11Z","git_url":"git://github.com/brycereitano/godo.git","ssh_url":"git@github.com:brycereitano/godo.git","clone_url":"https://github.com/brycereitano/godo.git","svn_url":"https://github.com/brycereitano/godo","homepage":null,"size":741,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"digitalocean:master","ref":"master","sha":"006aa44e95dc947d5be136070ac4228be914c138","user":{"login":"digitalocean","id":4650108,"avatar_url":"https://avatars.githubusercontent.com/u/4650108?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalocean","html_url":"https://github.com/digitalocean","followers_url":"https://api.github.com/users/digitalocean/followers","following_url":"https://api.github.com/users/digitalocean/following{/other_user}","gists_url":"https://api.github.com/users/digitalocean/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalocean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalocean/subscriptions","organizations_url":"https://api.github.com/users/digitalocean/orgs","repos_url":"https://api.github.com/users/digitalocean/repos","events_url":"https://api.github.com/users/digitalocean/events{/privacy}","received_events_url":"https://api.github.com/users/digitalocean/received_events","type":"Organization","site_admin":false},"repo":{"id":23622727,"name":"godo","full_name":"digitalocean/godo","owner":{"login":"digitalocean","id":4650108,"avatar_url":"https://avatars.githubusercontent.com/u/4650108?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalocean","html_url":"https://github.com/digitalocean","followers_url":"https://api.github.com/users/digitalocean/followers","following_url":"https://api.github.com/users/digitalocean/following{/other_user}","gists_url":"https://api.github.com/users/digitalocean/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalocean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalocean/subscriptions","organizations_url":"https://api.github.com/users/digitalocean/orgs","repos_url":"https://api.github.com/users/digitalocean/repos","events_url":"https://api.github.com/users/digitalocean/events{/privacy}","received_events_url":"https://api.github.com/users/digitalocean/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalocean/godo","description":"DigitalOcean Go API client","fork":false,"url":"https://api.github.com/repos/digitalocean/godo","forks_url":"https://api.github.com/repos/digitalocean/godo/forks","keys_url":"https://api.github.com/repos/digitalocean/godo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalocean/godo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalocean/godo/teams","hooks_url":"https://api.github.com/repos/digitalocean/godo/hooks","issue_events_url":"https://api.github.com/repos/digitalocean/godo/issues/events{/number}","events_url":"https://api.github.com/repos/digitalocean/godo/events","assignees_url":"https://api.github.com/repos/digitalocean/godo/assignees{/user}","branches_url":"https://api.github.com/repos/digitalocean/godo/branches{/branch}","tags_url":"https://api.github.com/repos/digitalocean/godo/tags","blobs_url":"https://api.github.com/repos/digitalocean/godo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalocean/godo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalocean/godo/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalocean/godo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalocean/godo/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalocean/godo/languages","stargazers_url":"https://api.github.com/repos/digitalocean/godo/stargazers","contributors_url":"https://api.github.com/repos/digitalocean/godo/contributors","subscribers_url":"https://api.github.com/repos/digitalocean/godo/subscribers","subscription_url":"https://api.github.com/repos/digitalocean/godo/subscription","commits_url":"https://api.github.com/repos/digitalocean/godo/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalocean/godo/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalocean/godo/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalocean/godo/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalocean/godo/contents/{+path}","compare_url":"https://api.github.com/repos/digitalocean/godo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalocean/godo/merges","archive_url":"https://api.github.com/repos/digitalocean/godo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalocean/godo/downloads","issues_url":"https://api.github.com/repos/digitalocean/godo/issues{/number}","pulls_url":"https://api.github.com/repos/digitalocean/godo/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalocean/godo/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalocean/godo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalocean/godo/labels{/name}","releases_url":"https://api.github.com/repos/digitalocean/godo/releases{/id}","created_at":"2014-09-03T14:07:36Z","updated_at":"2015-04-10T13:45:03Z","pushed_at":"2015-04-06T22:13:42Z","git_url":"git://github.com/digitalocean/godo.git","ssh_url":"git@github.com:digitalocean/godo.git","clone_url":"https://github.com/digitalocean/godo.git","svn_url":"https://github.com/digitalocean/godo","homepage":null,"size":741,"stargazers_count":108,"watchers_count":108,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":6,"forks":19,"open_issues":6,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalocean/godo/pulls/38"},"html":{"href":"https://github.com/digitalocean/godo/pull/38"},"issue":{"href":"https://api.github.com/repos/digitalocean/godo/issues/38"},"comments":{"href":"https://api.github.com/repos/digitalocean/godo/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalocean/godo/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalocean/godo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalocean/godo/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/digitalocean/godo/statuses/107613d25ba1badebdd0c586f49a6374290da25a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":5,"changed_files":3}}