{"action":"opened","number":122,"pull_request":{"url":"https://api.github.com/repos/coursera/naptime/pulls/122","id":89441083,"html_url":"https://github.com/coursera/naptime/pull/122","diff_url":"https://github.com/coursera/naptime/pull/122.diff","patch_url":"https://github.com/coursera/naptime/pull/122.patch","issue_url":"https://api.github.com/repos/coursera/naptime/issues/122","number":122,"state":"open","locked":false,"title":"Add schema inference override registry.","user":{"login":"saeta","id":1284535,"avatar_url":"https://avatars.githubusercontent.com/u/1284535?v=3","gravatar_id":"","url":"https://api.github.com/users/saeta","html_url":"https://github.com/saeta","followers_url":"https://api.github.com/users/saeta/followers","following_url":"https://api.github.com/users/saeta/following{/other_user}","gists_url":"https://api.github.com/users/saeta/gists{/gist_id}","starred_url":"https://api.github.com/users/saeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeta/subscriptions","organizations_url":"https://api.github.com/users/saeta/orgs","repos_url":"https://api.github.com/users/saeta/repos","events_url":"https://api.github.com/users/saeta/events{/privacy}","received_events_url":"https://api.github.com/users/saeta/received_events","type":"User","site_admin":false},"body":"When computing schemas for resources, if the types are neither\r\ncourier-based nor primitives, a reflection-based schema-inference\r\nalgorithm is run. This works fine for case-classes, but fails miserably\r\non some of their fields (e.g. if a field is a java.util.Date). This\r\nresults in relatively useless schemas (e.g. for GraphQL).\r\n\r\nIn this commit, I have added a Guice Multi-binding/MapBinding-based\r\nimplementation to register these overrides. Additionally, I've added a\r\nutility that can fix up these inferred schemas at runtime based on the\r\nconfigured overrides. Finally, I've added a test that verifies the\r\ncorrectness of all of the above.","created_at":"2016-10-14T19:28:48Z","updated_at":"2016-10-14T19:28:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coursera/naptime/pulls/122/commits","review_comments_url":"https://api.github.com/repos/coursera/naptime/pulls/122/comments","review_comment_url":"https://api.github.com/repos/coursera/naptime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coursera/naptime/issues/122/comments","statuses_url":"https://api.github.com/repos/coursera/naptime/statuses/e6ea0181e538800641b4677fd00a6e4af42cb335","head":{"label":"saeta:additional-type-registry","ref":"additional-type-registry","sha":"e6ea0181e538800641b4677fd00a6e4af42cb335","user":{"login":"saeta","id":1284535,"avatar_url":"https://avatars.githubusercontent.com/u/1284535?v=3","gravatar_id":"","url":"https://api.github.com/users/saeta","html_url":"https://github.com/saeta","followers_url":"https://api.github.com/users/saeta/followers","following_url":"https://api.github.com/users/saeta/following{/other_user}","gists_url":"https://api.github.com/users/saeta/gists{/gist_id}","starred_url":"https://api.github.com/users/saeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeta/subscriptions","organizations_url":"https://api.github.com/users/saeta/orgs","repos_url":"https://api.github.com/users/saeta/repos","events_url":"https://api.github.com/users/saeta/events{/privacy}","received_events_url":"https://api.github.com/users/saeta/received_events","type":"User","site_admin":false},"repo":{"id":57408936,"name":"naptime","full_name":"saeta/naptime","owner":{"login":"saeta","id":1284535,"avatar_url":"https://avatars.githubusercontent.com/u/1284535?v=3","gravatar_id":"","url":"https://api.github.com/users/saeta","html_url":"https://github.com/saeta","followers_url":"https://api.github.com/users/saeta/followers","following_url":"https://api.github.com/users/saeta/following{/other_user}","gists_url":"https://api.github.com/users/saeta/gists{/gist_id}","starred_url":"https://api.github.com/users/saeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeta/subscriptions","organizations_url":"https://api.github.com/users/saeta/orgs","repos_url":"https://api.github.com/users/saeta/repos","events_url":"https://api.github.com/users/saeta/events{/privacy}","received_events_url":"https://api.github.com/users/saeta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saeta/naptime","description":"Making REST APIs so easy, you can build them in your sleep!","fork":true,"url":"https://api.github.com/repos/saeta/naptime","forks_url":"https://api.github.com/repos/saeta/naptime/forks","keys_url":"https://api.github.com/repos/saeta/naptime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saeta/naptime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saeta/naptime/teams","hooks_url":"https://api.github.com/repos/saeta/naptime/hooks","issue_events_url":"https://api.github.com/repos/saeta/naptime/issues/events{/number}","events_url":"https://api.github.com/repos/saeta/naptime/events","assignees_url":"https://api.github.com/repos/saeta/naptime/assignees{/user}","branches_url":"https://api.github.com/repos/saeta/naptime/branches{/branch}","tags_url":"https://api.github.com/repos/saeta/naptime/tags","blobs_url":"https://api.github.com/repos/saeta/naptime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saeta/naptime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saeta/naptime/git/refs{/sha}","trees_url":"https://api.github.com/repos/saeta/naptime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saeta/naptime/statuses/{sha}","languages_url":"https://api.github.com/repos/saeta/naptime/languages","stargazers_url":"https://api.github.com/repos/saeta/naptime/stargazers","contributors_url":"https://api.github.com/repos/saeta/naptime/contributors","subscribers_url":"https://api.github.com/repos/saeta/naptime/subscribers","subscription_url":"https://api.github.com/repos/saeta/naptime/subscription","commits_url":"https://api.github.com/repos/saeta/naptime/commits{/sha}","git_commits_url":"https://api.github.com/repos/saeta/naptime/git/commits{/sha}","comments_url":"https://api.github.com/repos/saeta/naptime/comments{/number}","issue_comment_url":"https://api.github.com/repos/saeta/naptime/issues/comments{/number}","contents_url":"https://api.github.com/repos/saeta/naptime/contents/{+path}","compare_url":"https://api.github.com/repos/saeta/naptime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saeta/naptime/merges","archive_url":"https://api.github.com/repos/saeta/naptime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saeta/naptime/downloads","issues_url":"https://api.github.com/repos/saeta/naptime/issues{/number}","pulls_url":"https://api.github.com/repos/saeta/naptime/pulls{/number}","milestones_url":"https://api.github.com/repos/saeta/naptime/milestones{/number}","notifications_url":"https://api.github.com/repos/saeta/naptime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saeta/naptime/labels{/name}","releases_url":"https://api.github.com/repos/saeta/naptime/releases{/id}","deployments_url":"https://api.github.com/repos/saeta/naptime/deployments","created_at":"2016-04-29T19:45:40Z","updated_at":"2016-04-29T19:45:41Z","pushed_at":"2016-10-14T19:28:38Z","git_url":"git://github.com/saeta/naptime.git","ssh_url":"git@github.com:saeta/naptime.git","clone_url":"https://github.com/saeta/naptime.git","svn_url":"https://github.com/saeta/naptime","homepage":"","size":808,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"coursera:master","ref":"master","sha":"f4feb964fe69e303217d55440924b0e8ccb35e54","user":{"login":"coursera","id":1744549,"avatar_url":"https://avatars.githubusercontent.com/u/1744549?v=3","gravatar_id":"","url":"https://api.github.com/users/coursera","html_url":"https://github.com/coursera","followers_url":"https://api.github.com/users/coursera/followers","following_url":"https://api.github.com/users/coursera/following{/other_user}","gists_url":"https://api.github.com/users/coursera/gists{/gist_id}","starred_url":"https://api.github.com/users/coursera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coursera/subscriptions","organizations_url":"https://api.github.com/users/coursera/orgs","repos_url":"https://api.github.com/users/coursera/repos","events_url":"https://api.github.com/users/coursera/events{/privacy}","received_events_url":"https://api.github.com/users/coursera/received_events","type":"Organization","site_admin":false},"repo":{"id":57407978,"name":"naptime","full_name":"coursera/naptime","owner":{"login":"coursera","id":1744549,"avatar_url":"https://avatars.githubusercontent.com/u/1744549?v=3","gravatar_id":"","url":"https://api.github.com/users/coursera","html_url":"https://github.com/coursera","followers_url":"https://api.github.com/users/coursera/followers","following_url":"https://api.github.com/users/coursera/following{/other_user}","gists_url":"https://api.github.com/users/coursera/gists{/gist_id}","starred_url":"https://api.github.com/users/coursera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coursera/subscriptions","organizations_url":"https://api.github.com/users/coursera/orgs","repos_url":"https://api.github.com/users/coursera/repos","events_url":"https://api.github.com/users/coursera/events{/privacy}","received_events_url":"https://api.github.com/users/coursera/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coursera/naptime","description":"Making REST APIs so easy, you can build them in your sleep!","fork":false,"url":"https://api.github.com/repos/coursera/naptime","forks_url":"https://api.github.com/repos/coursera/naptime/forks","keys_url":"https://api.github.com/repos/coursera/naptime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coursera/naptime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coursera/naptime/teams","hooks_url":"https://api.github.com/repos/coursera/naptime/hooks","issue_events_url":"https://api.github.com/repos/coursera/naptime/issues/events{/number}","events_url":"https://api.github.com/repos/coursera/naptime/events","assignees_url":"https://api.github.com/repos/coursera/naptime/assignees{/user}","branches_url":"https://api.github.com/repos/coursera/naptime/branches{/branch}","tags_url":"https://api.github.com/repos/coursera/naptime/tags","blobs_url":"https://api.github.com/repos/coursera/naptime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coursera/naptime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coursera/naptime/git/refs{/sha}","trees_url":"https://api.github.com/repos/coursera/naptime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coursera/naptime/statuses/{sha}","languages_url":"https://api.github.com/repos/coursera/naptime/languages","stargazers_url":"https://api.github.com/repos/coursera/naptime/stargazers","contributors_url":"https://api.github.com/repos/coursera/naptime/contributors","subscribers_url":"https://api.github.com/repos/coursera/naptime/subscribers","subscription_url":"https://api.github.com/repos/coursera/naptime/subscription","commits_url":"https://api.github.com/repos/coursera/naptime/commits{/sha}","git_commits_url":"https://api.github.com/repos/coursera/naptime/git/commits{/sha}","comments_url":"https://api.github.com/repos/coursera/naptime/comments{/number}","issue_comment_url":"https://api.github.com/repos/coursera/naptime/issues/comments{/number}","contents_url":"https://api.github.com/repos/coursera/naptime/contents/{+path}","compare_url":"https://api.github.com/repos/coursera/naptime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coursera/naptime/merges","archive_url":"https://api.github.com/repos/coursera/naptime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coursera/naptime/downloads","issues_url":"https://api.github.com/repos/coursera/naptime/issues{/number}","pulls_url":"https://api.github.com/repos/coursera/naptime/pulls{/number}","milestones_url":"https://api.github.com/repos/coursera/naptime/milestones{/number}","notifications_url":"https://api.github.com/repos/coursera/naptime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coursera/naptime/labels{/name}","releases_url":"https://api.github.com/repos/coursera/naptime/releases{/id}","deployments_url":"https://api.github.com/repos/coursera/naptime/deployments","created_at":"2016-04-29T19:27:17Z","updated_at":"2016-10-12T08:08:45Z","pushed_at":"2016-10-14T19:28:48Z","git_url":"git://github.com/coursera/naptime.git","ssh_url":"git@github.com:coursera/naptime.git","clone_url":"https://github.com/coursera/naptime.git","svn_url":"https://github.com/coursera/naptime","homepage":"","size":974,"stargazers_count":25,"watchers_count":25,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coursera/naptime/pulls/122"},"html":{"href":"https://github.com/coursera/naptime/pull/122"},"issue":{"href":"https://api.github.com/repos/coursera/naptime/issues/122"},"comments":{"href":"https://api.github.com/repos/coursera/naptime/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/coursera/naptime/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/coursera/naptime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coursera/naptime/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/coursera/naptime/statuses/e6ea0181e538800641b4677fd00a6e4af42cb335"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":163,"deletions":3,"changed_files":6}}
{"actor":{"display_login":"saeta"}}