{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42","id":241684387,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNjg0Mzg3","html_url":"https://github.com/lightsofapollo/joi-to-json-schema/pull/42","diff_url":"https://github.com/lightsofapollo/joi-to-json-schema/pull/42.diff","patch_url":"https://github.com/lightsofapollo/joi-to-json-schema/pull/42.patch","issue_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/42","number":42,"state":"open","locked":false,"title":"Add support for joi binary type","user":{"login":"kenspirit","id":883277,"node_id":"MDQ6VXNlcjg4MzI3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/883277?v=4","gravatar_id":"","url":"https://api.github.com/users/kenspirit","html_url":"https://github.com/kenspirit","followers_url":"https://api.github.com/users/kenspirit/followers","following_url":"https://api.github.com/users/kenspirit/following{/other_user}","gists_url":"https://api.github.com/users/kenspirit/gists{/gist_id}","starred_url":"https://api.github.com/users/kenspirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenspirit/subscriptions","organizations_url":"https://api.github.com/users/kenspirit/orgs","repos_url":"https://api.github.com/users/kenspirit/repos","events_url":"https://api.github.com/users/kenspirit/events{/privacy}","received_events_url":"https://api.github.com/users/kenspirit/received_events","type":"User","site_admin":false},"body":"In the case of using Joi to validate HTTP request data, binary data can be included when uploading file.\r\n\r\nAs JSON schema doesn't contain Buffer data type directly, it supports [String-Encoding Non-Json Data](https://json-schema.org/latest/json-schema-validation.html#rfc.section.8).\r\n\r\nThis PR would like to add support for this case.","created_at":"2019-01-02T07:21:06Z","updated_at":"2019-01-02T07:21:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42/commits","review_comments_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42/comments","review_comment_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/42/comments","statuses_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/statuses/def63b7ff829e6981208e588642fab635c49ece7","head":{"label":"kenspirit:master","ref":"master","sha":"def63b7ff829e6981208e588642fab635c49ece7","user":{"login":"kenspirit","id":883277,"node_id":"MDQ6VXNlcjg4MzI3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/883277?v=4","gravatar_id":"","url":"https://api.github.com/users/kenspirit","html_url":"https://github.com/kenspirit","followers_url":"https://api.github.com/users/kenspirit/followers","following_url":"https://api.github.com/users/kenspirit/following{/other_user}","gists_url":"https://api.github.com/users/kenspirit/gists{/gist_id}","starred_url":"https://api.github.com/users/kenspirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenspirit/subscriptions","organizations_url":"https://api.github.com/users/kenspirit/orgs","repos_url":"https://api.github.com/users/kenspirit/repos","events_url":"https://api.github.com/users/kenspirit/events{/privacy}","received_events_url":"https://api.github.com/users/kenspirit/received_events","type":"User","site_admin":false},"repo":{"id":103507767,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1MDc3Njc=","name":"joi-to-json-schema","full_name":"kenspirit/joi-to-json-schema","private":false,"owner":{"login":"kenspirit","id":883277,"node_id":"MDQ6VXNlcjg4MzI3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/883277?v=4","gravatar_id":"","url":"https://api.github.com/users/kenspirit","html_url":"https://github.com/kenspirit","followers_url":"https://api.github.com/users/kenspirit/followers","following_url":"https://api.github.com/users/kenspirit/following{/other_user}","gists_url":"https://api.github.com/users/kenspirit/gists{/gist_id}","starred_url":"https://api.github.com/users/kenspirit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenspirit/subscriptions","organizations_url":"https://api.github.com/users/kenspirit/orgs","repos_url":"https://api.github.com/users/kenspirit/repos","events_url":"https://api.github.com/users/kenspirit/events{/privacy}","received_events_url":"https://api.github.com/users/kenspirit/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kenspirit/joi-to-json-schema","description":null,"fork":true,"url":"https://api.github.com/repos/kenspirit/joi-to-json-schema","forks_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/forks","keys_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/teams","hooks_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/hooks","issue_events_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/issues/events{/number}","events_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/events","assignees_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/assignees{/user}","branches_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/branches{/branch}","tags_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/tags","blobs_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/languages","stargazers_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/stargazers","contributors_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/contributors","subscribers_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/subscribers","subscription_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/subscription","commits_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/contents/{+path}","compare_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/merges","archive_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/downloads","issues_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/issues{/number}","pulls_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/labels{/name}","releases_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/releases{/id}","deployments_url":"https://api.github.com/repos/kenspirit/joi-to-json-schema/deployments","created_at":"2017-09-14T08:35:15Z","updated_at":"2019-01-02T06:18:42Z","pushed_at":"2019-01-02T06:18:41Z","git_url":"git://github.com/kenspirit/joi-to-json-schema.git","ssh_url":"git@github.com:kenspirit/joi-to-json-schema.git","clone_url":"https://github.com/kenspirit/joi-to-json-schema.git","svn_url":"https://github.com/kenspirit/joi-to-json-schema","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lightsofapollo:master","ref":"master","sha":"3e0abea14beeaa2b5e69cd6da305f9d9c9dccbdf","user":{"login":"lightsofapollo","id":322957,"node_id":"MDQ6VXNlcjMyMjk1Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/322957?v=4","gravatar_id":"","url":"https://api.github.com/users/lightsofapollo","html_url":"https://github.com/lightsofapollo","followers_url":"https://api.github.com/users/lightsofapollo/followers","following_url":"https://api.github.com/users/lightsofapollo/following{/other_user}","gists_url":"https://api.github.com/users/lightsofapollo/gists{/gist_id}","starred_url":"https://api.github.com/users/lightsofapollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightsofapollo/subscriptions","organizations_url":"https://api.github.com/users/lightsofapollo/orgs","repos_url":"https://api.github.com/users/lightsofapollo/repos","events_url":"https://api.github.com/users/lightsofapollo/events{/privacy}","received_events_url":"https://api.github.com/users/lightsofapollo/received_events","type":"User","site_admin":false},"repo":{"id":28624502,"node_id":"MDEwOlJlcG9zaXRvcnkyODYyNDUwMg==","name":"joi-to-json-schema","full_name":"lightsofapollo/joi-to-json-schema","private":false,"owner":{"login":"lightsofapollo","id":322957,"node_id":"MDQ6VXNlcjMyMjk1Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/322957?v=4","gravatar_id":"","url":"https://api.github.com/users/lightsofapollo","html_url":"https://github.com/lightsofapollo","followers_url":"https://api.github.com/users/lightsofapollo/followers","following_url":"https://api.github.com/users/lightsofapollo/following{/other_user}","gists_url":"https://api.github.com/users/lightsofapollo/gists{/gist_id}","starred_url":"https://api.github.com/users/lightsofapollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightsofapollo/subscriptions","organizations_url":"https://api.github.com/users/lightsofapollo/orgs","repos_url":"https://api.github.com/users/lightsofapollo/repos","events_url":"https://api.github.com/users/lightsofapollo/events{/privacy}","received_events_url":"https://api.github.com/users/lightsofapollo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/lightsofapollo/joi-to-json-schema","description":null,"fork":false,"url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema","forks_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/forks","keys_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/teams","hooks_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/hooks","issue_events_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/events{/number}","events_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/events","assignees_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/assignees{/user}","branches_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/branches{/branch}","tags_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/tags","blobs_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/languages","stargazers_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/stargazers","contributors_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/contributors","subscribers_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/subscribers","subscription_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/subscription","commits_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/contents/{+path}","compare_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/merges","archive_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/downloads","issues_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues{/number}","pulls_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/labels{/name}","releases_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/releases{/id}","deployments_url":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/deployments","created_at":"2014-12-30T09:06:45Z","updated_at":"2018-12-06T00:50:07Z","pushed_at":"2018-08-29T17:24:30Z","git_url":"git://github.com/lightsofapollo/joi-to-json-schema.git","ssh_url":"git@github.com:lightsofapollo/joi-to-json-schema.git","clone_url":"https://github.com/lightsofapollo/joi-to-json-schema.git","svn_url":"https://github.com/lightsofapollo/joi-to-json-schema","homepage":null,"size":103,"stargazers_count":84,"watchers_count":84,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":27,"open_issues":12,"watchers":84,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42"},"html":{"href":"https://github.com/lightsofapollo/joi-to-json-schema/pull/42"},"issue":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/42"},"comments":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/lightsofapollo/joi-to-json-schema/statuses/def63b7ff829e6981208e588642fab635c49ece7"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":29,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"kenspirit"}}