{"action":"opened","number":53,"pull_request":{"url":"https://api.github.com/repos/Ecwid/consul-api/pulls/53","id":66130742,"html_url":"https://github.com/Ecwid/consul-api/pull/53","diff_url":"https://github.com/Ecwid/consul-api/pull/53.diff","patch_url":"https://github.com/Ecwid/consul-api/pull/53.patch","issue_url":"https://api.github.com/repos/Ecwid/consul-api/issues/53","number":53,"state":"open","locked":false,"title":"Changed enum values so gson deserialize them correctly","user":{"login":"kortatu","id":266776,"avatar_url":"https://avatars.githubusercontent.com/u/266776?v=3","gravatar_id":"","url":"https://api.github.com/users/kortatu","html_url":"https://github.com/kortatu","followers_url":"https://api.github.com/users/kortatu/followers","following_url":"https://api.github.com/users/kortatu/following{/other_user}","gists_url":"https://api.github.com/users/kortatu/gists{/gist_id}","starred_url":"https://api.github.com/users/kortatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kortatu/subscriptions","organizations_url":"https://api.github.com/users/kortatu/orgs","repos_url":"https://api.github.com/users/kortatu/repos","events_url":"https://api.github.com/users/kortatu/events{/privacy}","received_events_url":"https://api.github.com/users/kortatu/received_events","type":"User","site_admin":false},"body":"I had problems using getAgentChecks API because the check status was always null. I discovered that gson was not serializing correctly enum values from Check.CheckStatus. The problem was that HTTP values were lowercase (..\"Status\":\"warning\"...) and enum values were uppercase.\r\nChanging enum to lowercase worked perfectly.\r\n\r\n","created_at":"2016-04-12T10:02:33Z","updated_at":"2016-04-12T10:02:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"965d7b220992919a70b6a10bc5d684a1af660ed4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ecwid/consul-api/pulls/53/commits","review_comments_url":"https://api.github.com/repos/Ecwid/consul-api/pulls/53/comments","review_comment_url":"https://api.github.com/repos/Ecwid/consul-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ecwid/consul-api/issues/53/comments","statuses_url":"https://api.github.com/repos/Ecwid/consul-api/statuses/8320bbaa74f4c9b6b589e59be4dd258c3ef5813b","head":{"label":"kortatu:master","ref":"master","sha":"8320bbaa74f4c9b6b589e59be4dd258c3ef5813b","user":{"login":"kortatu","id":266776,"avatar_url":"https://avatars.githubusercontent.com/u/266776?v=3","gravatar_id":"","url":"https://api.github.com/users/kortatu","html_url":"https://github.com/kortatu","followers_url":"https://api.github.com/users/kortatu/followers","following_url":"https://api.github.com/users/kortatu/following{/other_user}","gists_url":"https://api.github.com/users/kortatu/gists{/gist_id}","starred_url":"https://api.github.com/users/kortatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kortatu/subscriptions","organizations_url":"https://api.github.com/users/kortatu/orgs","repos_url":"https://api.github.com/users/kortatu/repos","events_url":"https://api.github.com/users/kortatu/events{/privacy}","received_events_url":"https://api.github.com/users/kortatu/received_events","type":"User","site_admin":false},"repo":{"id":56051543,"name":"consul-api","full_name":"kortatu/consul-api","owner":{"login":"kortatu","id":266776,"avatar_url":"https://avatars.githubusercontent.com/u/266776?v=3","gravatar_id":"","url":"https://api.github.com/users/kortatu","html_url":"https://github.com/kortatu","followers_url":"https://api.github.com/users/kortatu/followers","following_url":"https://api.github.com/users/kortatu/following{/other_user}","gists_url":"https://api.github.com/users/kortatu/gists{/gist_id}","starred_url":"https://api.github.com/users/kortatu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kortatu/subscriptions","organizations_url":"https://api.github.com/users/kortatu/orgs","repos_url":"https://api.github.com/users/kortatu/repos","events_url":"https://api.github.com/users/kortatu/events{/privacy}","received_events_url":"https://api.github.com/users/kortatu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kortatu/consul-api","description":"Java client for Consul HTTP API","fork":true,"url":"https://api.github.com/repos/kortatu/consul-api","forks_url":"https://api.github.com/repos/kortatu/consul-api/forks","keys_url":"https://api.github.com/repos/kortatu/consul-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kortatu/consul-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kortatu/consul-api/teams","hooks_url":"https://api.github.com/repos/kortatu/consul-api/hooks","issue_events_url":"https://api.github.com/repos/kortatu/consul-api/issues/events{/number}","events_url":"https://api.github.com/repos/kortatu/consul-api/events","assignees_url":"https://api.github.com/repos/kortatu/consul-api/assignees{/user}","branches_url":"https://api.github.com/repos/kortatu/consul-api/branches{/branch}","tags_url":"https://api.github.com/repos/kortatu/consul-api/tags","blobs_url":"https://api.github.com/repos/kortatu/consul-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kortatu/consul-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kortatu/consul-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kortatu/consul-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kortatu/consul-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kortatu/consul-api/languages","stargazers_url":"https://api.github.com/repos/kortatu/consul-api/stargazers","contributors_url":"https://api.github.com/repos/kortatu/consul-api/contributors","subscribers_url":"https://api.github.com/repos/kortatu/consul-api/subscribers","subscription_url":"https://api.github.com/repos/kortatu/consul-api/subscription","commits_url":"https://api.github.com/repos/kortatu/consul-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kortatu/consul-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kortatu/consul-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kortatu/consul-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/kortatu/consul-api/contents/{+path}","compare_url":"https://api.github.com/repos/kortatu/consul-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kortatu/consul-api/merges","archive_url":"https://api.github.com/repos/kortatu/consul-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kortatu/consul-api/downloads","issues_url":"https://api.github.com/repos/kortatu/consul-api/issues{/number}","pulls_url":"https://api.github.com/repos/kortatu/consul-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kortatu/consul-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kortatu/consul-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kortatu/consul-api/labels{/name}","releases_url":"https://api.github.com/repos/kortatu/consul-api/releases{/id}","deployments_url":"https://api.github.com/repos/kortatu/consul-api/deployments","created_at":"2016-04-12T09:56:56Z","updated_at":"2016-04-12T09:56:57Z","pushed_at":"2016-04-12T09:59:28Z","git_url":"git://github.com/kortatu/consul-api.git","ssh_url":"git@github.com:kortatu/consul-api.git","clone_url":"https://github.com/kortatu/consul-api.git","svn_url":"https://github.com/kortatu/consul-api","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"Ecwid:master","ref":"master","sha":"4551f8b2523e9f93d6d48b23dd000cbd667376d0","user":{"login":"Ecwid","id":942749,"avatar_url":"https://avatars.githubusercontent.com/u/942749?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecwid","html_url":"https://github.com/Ecwid","followers_url":"https://api.github.com/users/Ecwid/followers","following_url":"https://api.github.com/users/Ecwid/following{/other_user}","gists_url":"https://api.github.com/users/Ecwid/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecwid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecwid/subscriptions","organizations_url":"https://api.github.com/users/Ecwid/orgs","repos_url":"https://api.github.com/users/Ecwid/repos","events_url":"https://api.github.com/users/Ecwid/events{/privacy}","received_events_url":"https://api.github.com/users/Ecwid/received_events","type":"Organization","site_admin":false},"repo":{"id":23837751,"name":"consul-api","full_name":"Ecwid/consul-api","owner":{"login":"Ecwid","id":942749,"avatar_url":"https://avatars.githubusercontent.com/u/942749?v=3","gravatar_id":"","url":"https://api.github.com/users/Ecwid","html_url":"https://github.com/Ecwid","followers_url":"https://api.github.com/users/Ecwid/followers","following_url":"https://api.github.com/users/Ecwid/following{/other_user}","gists_url":"https://api.github.com/users/Ecwid/gists{/gist_id}","starred_url":"https://api.github.com/users/Ecwid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ecwid/subscriptions","organizations_url":"https://api.github.com/users/Ecwid/orgs","repos_url":"https://api.github.com/users/Ecwid/repos","events_url":"https://api.github.com/users/Ecwid/events{/privacy}","received_events_url":"https://api.github.com/users/Ecwid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ecwid/consul-api","description":"Java client for Consul HTTP API","fork":false,"url":"https://api.github.com/repos/Ecwid/consul-api","forks_url":"https://api.github.com/repos/Ecwid/consul-api/forks","keys_url":"https://api.github.com/repos/Ecwid/consul-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ecwid/consul-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ecwid/consul-api/teams","hooks_url":"https://api.github.com/repos/Ecwid/consul-api/hooks","issue_events_url":"https://api.github.com/repos/Ecwid/consul-api/issues/events{/number}","events_url":"https://api.github.com/repos/Ecwid/consul-api/events","assignees_url":"https://api.github.com/repos/Ecwid/consul-api/assignees{/user}","branches_url":"https://api.github.com/repos/Ecwid/consul-api/branches{/branch}","tags_url":"https://api.github.com/repos/Ecwid/consul-api/tags","blobs_url":"https://api.github.com/repos/Ecwid/consul-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ecwid/consul-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ecwid/consul-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ecwid/consul-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ecwid/consul-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Ecwid/consul-api/languages","stargazers_url":"https://api.github.com/repos/Ecwid/consul-api/stargazers","contributors_url":"https://api.github.com/repos/Ecwid/consul-api/contributors","subscribers_url":"https://api.github.com/repos/Ecwid/consul-api/subscribers","subscription_url":"https://api.github.com/repos/Ecwid/consul-api/subscription","commits_url":"https://api.github.com/repos/Ecwid/consul-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ecwid/consul-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ecwid/consul-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ecwid/consul-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ecwid/consul-api/contents/{+path}","compare_url":"https://api.github.com/repos/Ecwid/consul-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ecwid/consul-api/merges","archive_url":"https://api.github.com/repos/Ecwid/consul-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ecwid/consul-api/downloads","issues_url":"https://api.github.com/repos/Ecwid/consul-api/issues{/number}","pulls_url":"https://api.github.com/repos/Ecwid/consul-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Ecwid/consul-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Ecwid/consul-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ecwid/consul-api/labels{/name}","releases_url":"https://api.github.com/repos/Ecwid/consul-api/releases{/id}","deployments_url":"https://api.github.com/repos/Ecwid/consul-api/deployments","created_at":"2014-09-09T14:52:57Z","updated_at":"2016-04-12T06:22:43Z","pushed_at":"2016-04-12T10:02:34Z","git_url":"git://github.com/Ecwid/consul-api.git","ssh_url":"git@github.com:Ecwid/consul-api.git","clone_url":"https://github.com/Ecwid/consul-api.git","svn_url":"https://github.com/Ecwid/consul-api","homepage":"","size":237,"stargazers_count":83,"watchers_count":83,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":12,"forks":41,"open_issues":12,"watchers":83,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ecwid/consul-api/pulls/53"},"html":{"href":"https://github.com/Ecwid/consul-api/pull/53"},"issue":{"href":"https://api.github.com/repos/Ecwid/consul-api/issues/53"},"comments":{"href":"https://api.github.com/repos/Ecwid/consul-api/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/Ecwid/consul-api/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/Ecwid/consul-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ecwid/consul-api/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/Ecwid/consul-api/statuses/8320bbaa74f4c9b6b589e59be4dd258c3ef5813b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":5,"changed_files":2}}