{"action":"closed","number":348,"pull_request":{"url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348","id":78766343,"html_url":"https://github.com/ruby-json-schema/json-schema/pull/348","diff_url":"https://github.com/ruby-json-schema/json-schema/pull/348.diff","patch_url":"https://github.com/ruby-json-schema/json-schema/pull/348.patch","issue_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/348","number":348,"state":"closed","locked":false,"title":"Item partial tuples","user":{"login":"jlfaber","id":399242,"avatar_url":"https://avatars.githubusercontent.com/u/399242?v=3","gravatar_id":"","url":"https://api.github.com/users/jlfaber","html_url":"https://github.com/jlfaber","followers_url":"https://api.github.com/users/jlfaber/followers","following_url":"https://api.github.com/users/jlfaber/following{/other_user}","gists_url":"https://api.github.com/users/jlfaber/gists{/gist_id}","starred_url":"https://api.github.com/users/jlfaber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlfaber/subscriptions","organizations_url":"https://api.github.com/users/jlfaber/orgs","repos_url":"https://api.github.com/users/jlfaber/repos","events_url":"https://api.github.com/users/jlfaber/events{/privacy}","received_events_url":"https://api.github.com/users/jlfaber/received_events","type":"User","site_admin":false},"body":"Currently, when 'items' is an array of schemas, validation will fail if the target array has fewer elements than the 'items' array.  This conflicts with the spec, which allows for partial (or even empty) tuples to pass validation unless 'minItems' is also set.\r\n\r\nSee the relevant section of [Understanding JSON Schema](https://spacetelescope.github.io/understanding-json-schema/reference/array.html#tuple-validation) for examples of this.  Note specifically the statement: \"It's okay to not provide all the items.\"\r\n\r\nThis PR modifies the array_validation tests to check for this condition and fixes the corresponding code in the attributes directory.","created_at":"2016-07-25T22:57:00Z","updated_at":"2016-09-29T09:44:18Z","closed_at":"2016-09-29T09:44:18Z","merged_at":"2016-09-29T09:44:18Z","merge_commit_sha":"e5c3a1a95dffcfb27def484677f2760758c5af5f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348/commits","review_comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348/comments","review_comment_url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/348/comments","statuses_url":"https://api.github.com/repos/ruby-json-schema/json-schema/statuses/d9b0e593f5e2944cc2d65ff42db05cfa59428be8","head":{"label":"jlfaber:item_partial_tuples","ref":"item_partial_tuples","sha":"d9b0e593f5e2944cc2d65ff42db05cfa59428be8","user":{"login":"jlfaber","id":399242,"avatar_url":"https://avatars.githubusercontent.com/u/399242?v=3","gravatar_id":"","url":"https://api.github.com/users/jlfaber","html_url":"https://github.com/jlfaber","followers_url":"https://api.github.com/users/jlfaber/followers","following_url":"https://api.github.com/users/jlfaber/following{/other_user}","gists_url":"https://api.github.com/users/jlfaber/gists{/gist_id}","starred_url":"https://api.github.com/users/jlfaber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlfaber/subscriptions","organizations_url":"https://api.github.com/users/jlfaber/orgs","repos_url":"https://api.github.com/users/jlfaber/repos","events_url":"https://api.github.com/users/jlfaber/events{/privacy}","received_events_url":"https://api.github.com/users/jlfaber/received_events","type":"User","site_admin":false},"repo":{"id":64172259,"name":"json-schema","full_name":"jlfaber/json-schema","owner":{"login":"jlfaber","id":399242,"avatar_url":"https://avatars.githubusercontent.com/u/399242?v=3","gravatar_id":"","url":"https://api.github.com/users/jlfaber","html_url":"https://github.com/jlfaber","followers_url":"https://api.github.com/users/jlfaber/followers","following_url":"https://api.github.com/users/jlfaber/following{/other_user}","gists_url":"https://api.github.com/users/jlfaber/gists{/gist_id}","starred_url":"https://api.github.com/users/jlfaber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlfaber/subscriptions","organizations_url":"https://api.github.com/users/jlfaber/orgs","repos_url":"https://api.github.com/users/jlfaber/repos","events_url":"https://api.github.com/users/jlfaber/events{/privacy}","received_events_url":"https://api.github.com/users/jlfaber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlfaber/json-schema","description":"Ruby JSON Schema Validator","fork":true,"url":"https://api.github.com/repos/jlfaber/json-schema","forks_url":"https://api.github.com/repos/jlfaber/json-schema/forks","keys_url":"https://api.github.com/repos/jlfaber/json-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlfaber/json-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlfaber/json-schema/teams","hooks_url":"https://api.github.com/repos/jlfaber/json-schema/hooks","issue_events_url":"https://api.github.com/repos/jlfaber/json-schema/issues/events{/number}","events_url":"https://api.github.com/repos/jlfaber/json-schema/events","assignees_url":"https://api.github.com/repos/jlfaber/json-schema/assignees{/user}","branches_url":"https://api.github.com/repos/jlfaber/json-schema/branches{/branch}","tags_url":"https://api.github.com/repos/jlfaber/json-schema/tags","blobs_url":"https://api.github.com/repos/jlfaber/json-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlfaber/json-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlfaber/json-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlfaber/json-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlfaber/json-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/jlfaber/json-schema/languages","stargazers_url":"https://api.github.com/repos/jlfaber/json-schema/stargazers","contributors_url":"https://api.github.com/repos/jlfaber/json-schema/contributors","subscribers_url":"https://api.github.com/repos/jlfaber/json-schema/subscribers","subscription_url":"https://api.github.com/repos/jlfaber/json-schema/subscription","commits_url":"https://api.github.com/repos/jlfaber/json-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlfaber/json-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlfaber/json-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlfaber/json-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlfaber/json-schema/contents/{+path}","compare_url":"https://api.github.com/repos/jlfaber/json-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlfaber/json-schema/merges","archive_url":"https://api.github.com/repos/jlfaber/json-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlfaber/json-schema/downloads","issues_url":"https://api.github.com/repos/jlfaber/json-schema/issues{/number}","pulls_url":"https://api.github.com/repos/jlfaber/json-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/jlfaber/json-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/jlfaber/json-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlfaber/json-schema/labels{/name}","releases_url":"https://api.github.com/repos/jlfaber/json-schema/releases{/id}","deployments_url":"https://api.github.com/repos/jlfaber/json-schema/deployments","created_at":"2016-07-25T22:33:32Z","updated_at":"2016-07-25T22:33:34Z","pushed_at":"2016-09-28T22:08:40Z","git_url":"git://github.com/jlfaber/json-schema.git","ssh_url":"git@github.com:jlfaber/json-schema.git","clone_url":"https://github.com/jlfaber/json-schema.git","svn_url":"https://github.com/jlfaber/json-schema","homepage":"","size":759,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ruby-json-schema:master","ref":"master","sha":"242e862370fb2134c96d6df733f349abe33a7618","user":{"login":"ruby-json-schema","id":9450367,"avatar_url":"https://avatars.githubusercontent.com/u/9450367?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-json-schema","html_url":"https://github.com/ruby-json-schema","followers_url":"https://api.github.com/users/ruby-json-schema/followers","following_url":"https://api.github.com/users/ruby-json-schema/following{/other_user}","gists_url":"https://api.github.com/users/ruby-json-schema/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-json-schema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-json-schema/subscriptions","organizations_url":"https://api.github.com/users/ruby-json-schema/orgs","repos_url":"https://api.github.com/users/ruby-json-schema/repos","events_url":"https://api.github.com/users/ruby-json-schema/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-json-schema/received_events","type":"Organization","site_admin":false},"repo":{"id":1110217,"name":"json-schema","full_name":"ruby-json-schema/json-schema","owner":{"login":"ruby-json-schema","id":9450367,"avatar_url":"https://avatars.githubusercontent.com/u/9450367?v=3","gravatar_id":"","url":"https://api.github.com/users/ruby-json-schema","html_url":"https://github.com/ruby-json-schema","followers_url":"https://api.github.com/users/ruby-json-schema/followers","following_url":"https://api.github.com/users/ruby-json-schema/following{/other_user}","gists_url":"https://api.github.com/users/ruby-json-schema/gists{/gist_id}","starred_url":"https://api.github.com/users/ruby-json-schema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruby-json-schema/subscriptions","organizations_url":"https://api.github.com/users/ruby-json-schema/orgs","repos_url":"https://api.github.com/users/ruby-json-schema/repos","events_url":"https://api.github.com/users/ruby-json-schema/events{/privacy}","received_events_url":"https://api.github.com/users/ruby-json-schema/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ruby-json-schema/json-schema","description":"Ruby JSON Schema Validator","fork":false,"url":"https://api.github.com/repos/ruby-json-schema/json-schema","forks_url":"https://api.github.com/repos/ruby-json-schema/json-schema/forks","keys_url":"https://api.github.com/repos/ruby-json-schema/json-schema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruby-json-schema/json-schema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruby-json-schema/json-schema/teams","hooks_url":"https://api.github.com/repos/ruby-json-schema/json-schema/hooks","issue_events_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/events{/number}","events_url":"https://api.github.com/repos/ruby-json-schema/json-schema/events","assignees_url":"https://api.github.com/repos/ruby-json-schema/json-schema/assignees{/user}","branches_url":"https://api.github.com/repos/ruby-json-schema/json-schema/branches{/branch}","tags_url":"https://api.github.com/repos/ruby-json-schema/json-schema/tags","blobs_url":"https://api.github.com/repos/ruby-json-schema/json-schema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruby-json-schema/json-schema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruby-json-schema/json-schema/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruby-json-schema/json-schema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruby-json-schema/json-schema/statuses/{sha}","languages_url":"https://api.github.com/repos/ruby-json-schema/json-schema/languages","stargazers_url":"https://api.github.com/repos/ruby-json-schema/json-schema/stargazers","contributors_url":"https://api.github.com/repos/ruby-json-schema/json-schema/contributors","subscribers_url":"https://api.github.com/repos/ruby-json-schema/json-schema/subscribers","subscription_url":"https://api.github.com/repos/ruby-json-schema/json-schema/subscription","commits_url":"https://api.github.com/repos/ruby-json-schema/json-schema/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruby-json-schema/json-schema/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruby-json-schema/json-schema/contents/{+path}","compare_url":"https://api.github.com/repos/ruby-json-schema/json-schema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruby-json-schema/json-schema/merges","archive_url":"https://api.github.com/repos/ruby-json-schema/json-schema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruby-json-schema/json-schema/downloads","issues_url":"https://api.github.com/repos/ruby-json-schema/json-schema/issues{/number}","pulls_url":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls{/number}","milestones_url":"https://api.github.com/repos/ruby-json-schema/json-schema/milestones{/number}","notifications_url":"https://api.github.com/repos/ruby-json-schema/json-schema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruby-json-schema/json-schema/labels{/name}","releases_url":"https://api.github.com/repos/ruby-json-schema/json-schema/releases{/id}","deployments_url":"https://api.github.com/repos/ruby-json-schema/json-schema/deployments","created_at":"2010-11-24T20:05:16Z","updated_at":"2016-09-27T08:27:17Z","pushed_at":"2016-09-29T09:44:18Z","git_url":"git://github.com/ruby-json-schema/json-schema.git","ssh_url":"git@github.com:ruby-json-schema/json-schema.git","clone_url":"https://github.com/ruby-json-schema/json-schema.git","svn_url":"https://github.com/ruby-json-schema/json-schema","homepage":"","size":958,"stargazers_count":732,"watchers_count":732,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":163,"mirror_url":null,"open_issues_count":78,"forks":163,"open_issues":78,"watchers":732,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348"},"html":{"href":"https://github.com/ruby-json-schema/json-schema/pull/348"},"issue":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/348"},"comments":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/issues/348/comments"},"review_comments":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348/comments"},"review_comment":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/pulls/348/commits"},"statuses":{"href":"https://api.github.com/repos/ruby-json-schema/json-schema/statuses/d9b0e593f5e2944cc2d65ff42db05cfa59428be8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"iainbeeston","id":111963,"avatar_url":"https://avatars.githubusercontent.com/u/111963?v=3","gravatar_id":"","url":"https://api.github.com/users/iainbeeston","html_url":"https://github.com/iainbeeston","followers_url":"https://api.github.com/users/iainbeeston/followers","following_url":"https://api.github.com/users/iainbeeston/following{/other_user}","gists_url":"https://api.github.com/users/iainbeeston/gists{/gist_id}","starred_url":"https://api.github.com/users/iainbeeston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainbeeston/subscriptions","organizations_url":"https://api.github.com/users/iainbeeston/orgs","repos_url":"https://api.github.com/users/iainbeeston/repos","events_url":"https://api.github.com/users/iainbeeston/events{/privacy}","received_events_url":"https://api.github.com/users/iainbeeston/received_events","type":"User","site_admin":false},"comments":10,"review_comments":1,"commits":3,"additions":10,"deletions":2,"changed_files":4}}
{"actor":{"display_login":"iainbeeston"}}