{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/soutaro/strong_json/pulls/5","id":137636896,"html_url":"https://github.com/soutaro/strong_json/pull/5","diff_url":"https://github.com/soutaro/strong_json/pull/5.diff","patch_url":"https://github.com/soutaro/strong_json/pull/5.patch","issue_url":"https://api.github.com/repos/soutaro/strong_json/issues/5","number":5,"state":"open","locked":false,"title":"Add a shorthand for `optional(any)`","user":{"login":"pocke","id":4361134,"avatar_url":"https://avatars0.githubusercontent.com/u/4361134?v=4","gravatar_id":"","url":"https://api.github.com/users/pocke","html_url":"https://github.com/pocke","followers_url":"https://api.github.com/users/pocke/followers","following_url":"https://api.github.com/users/pocke/following{/other_user}","gists_url":"https://api.github.com/users/pocke/gists{/gist_id}","starred_url":"https://api.github.com/users/pocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocke/subscriptions","organizations_url":"https://api.github.com/users/pocke/orgs","repos_url":"https://api.github.com/users/pocke/repos","events_url":"https://api.github.com/users/pocke/events{/privacy}","received_events_url":"https://api.github.com/users/pocke/received_events","type":"User","site_admin":false},"body":"`any?` is like `ignored`, but `any?` returns received value.\r\n\r\n```ruby\r\nrequire 'strong_json'\r\n\r\ns = StrongJSON.new do\r\n  let :a, object(x: ignored)\r\n  let :b, object(x: any?)\r\nend\r\n\r\np s.a.coerce({x: 1}) # => {}\r\np s.b.coerce({x: 1}) # => {x: 1}\r\n```","created_at":"2017-08-25T09:48:14Z","updated_at":"2017-08-25T09:48:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/soutaro/strong_json/pulls/5/commits","review_comments_url":"https://api.github.com/repos/soutaro/strong_json/pulls/5/comments","review_comment_url":"https://api.github.com/repos/soutaro/strong_json/pulls/comments{/number}","comments_url":"https://api.github.com/repos/soutaro/strong_json/issues/5/comments","statuses_url":"https://api.github.com/repos/soutaro/strong_json/statuses/9ae6010239496c41add5e86d6f137331423969bc","head":{"label":"pocke:optional-any","ref":"optional-any","sha":"9ae6010239496c41add5e86d6f137331423969bc","user":{"login":"pocke","id":4361134,"avatar_url":"https://avatars0.githubusercontent.com/u/4361134?v=4","gravatar_id":"","url":"https://api.github.com/users/pocke","html_url":"https://github.com/pocke","followers_url":"https://api.github.com/users/pocke/followers","following_url":"https://api.github.com/users/pocke/following{/other_user}","gists_url":"https://api.github.com/users/pocke/gists{/gist_id}","starred_url":"https://api.github.com/users/pocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocke/subscriptions","organizations_url":"https://api.github.com/users/pocke/orgs","repos_url":"https://api.github.com/users/pocke/repos","events_url":"https://api.github.com/users/pocke/events{/privacy}","received_events_url":"https://api.github.com/users/pocke/received_events","type":"User","site_admin":false},"repo":{"id":92403376,"name":"strong_json","full_name":"pocke/strong_json","owner":{"login":"pocke","id":4361134,"avatar_url":"https://avatars0.githubusercontent.com/u/4361134?v=4","gravatar_id":"","url":"https://api.github.com/users/pocke","html_url":"https://github.com/pocke","followers_url":"https://api.github.com/users/pocke/followers","following_url":"https://api.github.com/users/pocke/following{/other_user}","gists_url":"https://api.github.com/users/pocke/gists{/gist_id}","starred_url":"https://api.github.com/users/pocke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocke/subscriptions","organizations_url":"https://api.github.com/users/pocke/orgs","repos_url":"https://api.github.com/users/pocke/repos","events_url":"https://api.github.com/users/pocke/events{/privacy}","received_events_url":"https://api.github.com/users/pocke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pocke/strong_json","description":"Type check JSON objects","fork":true,"url":"https://api.github.com/repos/pocke/strong_json","forks_url":"https://api.github.com/repos/pocke/strong_json/forks","keys_url":"https://api.github.com/repos/pocke/strong_json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pocke/strong_json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pocke/strong_json/teams","hooks_url":"https://api.github.com/repos/pocke/strong_json/hooks","issue_events_url":"https://api.github.com/repos/pocke/strong_json/issues/events{/number}","events_url":"https://api.github.com/repos/pocke/strong_json/events","assignees_url":"https://api.github.com/repos/pocke/strong_json/assignees{/user}","branches_url":"https://api.github.com/repos/pocke/strong_json/branches{/branch}","tags_url":"https://api.github.com/repos/pocke/strong_json/tags","blobs_url":"https://api.github.com/repos/pocke/strong_json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pocke/strong_json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pocke/strong_json/git/refs{/sha}","trees_url":"https://api.github.com/repos/pocke/strong_json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pocke/strong_json/statuses/{sha}","languages_url":"https://api.github.com/repos/pocke/strong_json/languages","stargazers_url":"https://api.github.com/repos/pocke/strong_json/stargazers","contributors_url":"https://api.github.com/repos/pocke/strong_json/contributors","subscribers_url":"https://api.github.com/repos/pocke/strong_json/subscribers","subscription_url":"https://api.github.com/repos/pocke/strong_json/subscription","commits_url":"https://api.github.com/repos/pocke/strong_json/commits{/sha}","git_commits_url":"https://api.github.com/repos/pocke/strong_json/git/commits{/sha}","comments_url":"https://api.github.com/repos/pocke/strong_json/comments{/number}","issue_comment_url":"https://api.github.com/repos/pocke/strong_json/issues/comments{/number}","contents_url":"https://api.github.com/repos/pocke/strong_json/contents/{+path}","compare_url":"https://api.github.com/repos/pocke/strong_json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pocke/strong_json/merges","archive_url":"https://api.github.com/repos/pocke/strong_json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pocke/strong_json/downloads","issues_url":"https://api.github.com/repos/pocke/strong_json/issues{/number}","pulls_url":"https://api.github.com/repos/pocke/strong_json/pulls{/number}","milestones_url":"https://api.github.com/repos/pocke/strong_json/milestones{/number}","notifications_url":"https://api.github.com/repos/pocke/strong_json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pocke/strong_json/labels{/name}","releases_url":"https://api.github.com/repos/pocke/strong_json/releases{/id}","deployments_url":"https://api.github.com/repos/pocke/strong_json/deployments","created_at":"2017-05-25T12:57:19Z","updated_at":"2017-05-25T12:57:21Z","pushed_at":"2017-08-25T09:47:55Z","git_url":"git://github.com/pocke/strong_json.git","ssh_url":"git@github.com:pocke/strong_json.git","clone_url":"https://github.com/pocke/strong_json.git","svn_url":"https://github.com/pocke/strong_json","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"soutaro:master","ref":"master","sha":"631c0f433614e837cde38f852cc1dfaa0d0a67c2","user":{"login":"soutaro","id":139089,"avatar_url":"https://avatars3.githubusercontent.com/u/139089?v=4","gravatar_id":"","url":"https://api.github.com/users/soutaro","html_url":"https://github.com/soutaro","followers_url":"https://api.github.com/users/soutaro/followers","following_url":"https://api.github.com/users/soutaro/following{/other_user}","gists_url":"https://api.github.com/users/soutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/soutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutaro/subscriptions","organizations_url":"https://api.github.com/users/soutaro/orgs","repos_url":"https://api.github.com/users/soutaro/repos","events_url":"https://api.github.com/users/soutaro/events{/privacy}","received_events_url":"https://api.github.com/users/soutaro/received_events","type":"User","site_admin":false},"repo":{"id":25072926,"name":"strong_json","full_name":"soutaro/strong_json","owner":{"login":"soutaro","id":139089,"avatar_url":"https://avatars3.githubusercontent.com/u/139089?v=4","gravatar_id":"","url":"https://api.github.com/users/soutaro","html_url":"https://github.com/soutaro","followers_url":"https://api.github.com/users/soutaro/followers","following_url":"https://api.github.com/users/soutaro/following{/other_user}","gists_url":"https://api.github.com/users/soutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/soutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutaro/subscriptions","organizations_url":"https://api.github.com/users/soutaro/orgs","repos_url":"https://api.github.com/users/soutaro/repos","events_url":"https://api.github.com/users/soutaro/events{/privacy}","received_events_url":"https://api.github.com/users/soutaro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soutaro/strong_json","description":"Type check JSON objects","fork":false,"url":"https://api.github.com/repos/soutaro/strong_json","forks_url":"https://api.github.com/repos/soutaro/strong_json/forks","keys_url":"https://api.github.com/repos/soutaro/strong_json/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soutaro/strong_json/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soutaro/strong_json/teams","hooks_url":"https://api.github.com/repos/soutaro/strong_json/hooks","issue_events_url":"https://api.github.com/repos/soutaro/strong_json/issues/events{/number}","events_url":"https://api.github.com/repos/soutaro/strong_json/events","assignees_url":"https://api.github.com/repos/soutaro/strong_json/assignees{/user}","branches_url":"https://api.github.com/repos/soutaro/strong_json/branches{/branch}","tags_url":"https://api.github.com/repos/soutaro/strong_json/tags","blobs_url":"https://api.github.com/repos/soutaro/strong_json/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soutaro/strong_json/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soutaro/strong_json/git/refs{/sha}","trees_url":"https://api.github.com/repos/soutaro/strong_json/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soutaro/strong_json/statuses/{sha}","languages_url":"https://api.github.com/repos/soutaro/strong_json/languages","stargazers_url":"https://api.github.com/repos/soutaro/strong_json/stargazers","contributors_url":"https://api.github.com/repos/soutaro/strong_json/contributors","subscribers_url":"https://api.github.com/repos/soutaro/strong_json/subscribers","subscription_url":"https://api.github.com/repos/soutaro/strong_json/subscription","commits_url":"https://api.github.com/repos/soutaro/strong_json/commits{/sha}","git_commits_url":"https://api.github.com/repos/soutaro/strong_json/git/commits{/sha}","comments_url":"https://api.github.com/repos/soutaro/strong_json/comments{/number}","issue_comment_url":"https://api.github.com/repos/soutaro/strong_json/issues/comments{/number}","contents_url":"https://api.github.com/repos/soutaro/strong_json/contents/{+path}","compare_url":"https://api.github.com/repos/soutaro/strong_json/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soutaro/strong_json/merges","archive_url":"https://api.github.com/repos/soutaro/strong_json/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soutaro/strong_json/downloads","issues_url":"https://api.github.com/repos/soutaro/strong_json/issues{/number}","pulls_url":"https://api.github.com/repos/soutaro/strong_json/pulls{/number}","milestones_url":"https://api.github.com/repos/soutaro/strong_json/milestones{/number}","notifications_url":"https://api.github.com/repos/soutaro/strong_json/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soutaro/strong_json/labels{/name}","releases_url":"https://api.github.com/repos/soutaro/strong_json/releases{/id}","deployments_url":"https://api.github.com/repos/soutaro/strong_json/deployments","created_at":"2014-10-11T09:59:21Z","updated_at":"2017-05-16T08:53:15Z","pushed_at":"2017-05-27T08:32:33Z","git_url":"git://github.com/soutaro/strong_json.git","ssh_url":"git@github.com:soutaro/strong_json.git","clone_url":"https://github.com/soutaro/strong_json.git","svn_url":"https://github.com/soutaro/strong_json","homepage":null,"size":32,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/soutaro/strong_json/pulls/5"},"html":{"href":"https://github.com/soutaro/strong_json/pull/5"},"issue":{"href":"https://api.github.com/repos/soutaro/strong_json/issues/5"},"comments":{"href":"https://api.github.com/repos/soutaro/strong_json/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/soutaro/strong_json/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/soutaro/strong_json/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/soutaro/strong_json/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/soutaro/strong_json/statuses/9ae6010239496c41add5e86d6f137331423969bc"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":5,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"pocke"}}