{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37","id":38383644,"html_url":"https://github.com/silfverstrom/duns.js/pull/37","diff_url":"https://github.com/silfverstrom/duns.js/pull/37.diff","patch_url":"https://github.com/silfverstrom/duns.js/pull/37.patch","issue_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/37","number":37,"state":"open","locked":false,"title":"Fixed bugg where none specified keys were allowed.","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"body":"```\r\nvar schema = Duns.object().keys({\r\n  test : Duns.any(),\r\n});\r\n\r\n// This was previously allowed\r\nschema.init({ test: 100, test2: 200}).validate();\r\n```\r\n\r\nI've changed the code above to return false on validate.\r\n\r\nAlso in this commit, some additional tests and some stabilisations when\r\ngetting default arguments in validators. should reduce problems to come.","created_at":"2015-06-23T21:13:07Z","updated_at":"2015-06-23T21:13:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"br0r","id":3502652,"avatar_url":"https://avatars.githubusercontent.com/u/3502652?v=3","gravatar_id":"","url":"https://api.github.com/users/br0r","html_url":"https://github.com/br0r","followers_url":"https://api.github.com/users/br0r/followers","following_url":"https://api.github.com/users/br0r/following{/other_user}","gists_url":"https://api.github.com/users/br0r/gists{/gist_id}","starred_url":"https://api.github.com/users/br0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br0r/subscriptions","organizations_url":"https://api.github.com/users/br0r/orgs","repos_url":"https://api.github.com/users/br0r/repos","events_url":"https://api.github.com/users/br0r/events{/privacy}","received_events_url":"https://api.github.com/users/br0r/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37/commits","review_comments_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37/comments","review_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/37/comments","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/f31ea5478fed0a8ad3f1a9fdccfc1e9cc8956d1c","head":{"label":"silfverstrom:bugg/allows-none-specified-keys","ref":"bugg/allows-none-specified-keys","sha":"f31ea5478fed0a8ad3f1a9fdccfc1e9cc8956d1c","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"repo":{"id":36282162,"name":"duns.js","full_name":"silfverstrom/duns.js","owner":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silfverstrom/duns.js","description":"Schema validator ","fork":false,"url":"https://api.github.com/repos/silfverstrom/duns.js","forks_url":"https://api.github.com/repos/silfverstrom/duns.js/forks","keys_url":"https://api.github.com/repos/silfverstrom/duns.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silfverstrom/duns.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silfverstrom/duns.js/teams","hooks_url":"https://api.github.com/repos/silfverstrom/duns.js/hooks","issue_events_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/events{/number}","events_url":"https://api.github.com/repos/silfverstrom/duns.js/events","assignees_url":"https://api.github.com/repos/silfverstrom/duns.js/assignees{/user}","branches_url":"https://api.github.com/repos/silfverstrom/duns.js/branches{/branch}","tags_url":"https://api.github.com/repos/silfverstrom/duns.js/tags","blobs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silfverstrom/duns.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/silfverstrom/duns.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/{sha}","languages_url":"https://api.github.com/repos/silfverstrom/duns.js/languages","stargazers_url":"https://api.github.com/repos/silfverstrom/duns.js/stargazers","contributors_url":"https://api.github.com/repos/silfverstrom/duns.js/contributors","subscribers_url":"https://api.github.com/repos/silfverstrom/duns.js/subscribers","subscription_url":"https://api.github.com/repos/silfverstrom/duns.js/subscription","commits_url":"https://api.github.com/repos/silfverstrom/duns.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/silfverstrom/duns.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/silfverstrom/duns.js/contents/{+path}","compare_url":"https://api.github.com/repos/silfverstrom/duns.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silfverstrom/duns.js/merges","archive_url":"https://api.github.com/repos/silfverstrom/duns.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silfverstrom/duns.js/downloads","issues_url":"https://api.github.com/repos/silfverstrom/duns.js/issues{/number}","pulls_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls{/number}","milestones_url":"https://api.github.com/repos/silfverstrom/duns.js/milestones{/number}","notifications_url":"https://api.github.com/repos/silfverstrom/duns.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silfverstrom/duns.js/labels{/name}","releases_url":"https://api.github.com/repos/silfverstrom/duns.js/releases{/id}","created_at":"2015-05-26T08:23:24Z","updated_at":"2015-06-11T21:01:34Z","pushed_at":"2015-06-23T21:13:07Z","git_url":"git://github.com/silfverstrom/duns.js.git","ssh_url":"git@github.com:silfverstrom/duns.js.git","clone_url":"https://github.com/silfverstrom/duns.js.git","svn_url":"https://github.com/silfverstrom/duns.js","homepage":null,"size":561,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":5,"default_branch":"master"}},"base":{"label":"silfverstrom:master","ref":"master","sha":"a87226a020d29e5779559adf6081ef6ffca5b5bf","user":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"repo":{"id":36282162,"name":"duns.js","full_name":"silfverstrom/duns.js","owner":{"login":"silfverstrom","id":303546,"avatar_url":"https://avatars.githubusercontent.com/u/303546?v=3","gravatar_id":"","url":"https://api.github.com/users/silfverstrom","html_url":"https://github.com/silfverstrom","followers_url":"https://api.github.com/users/silfverstrom/followers","following_url":"https://api.github.com/users/silfverstrom/following{/other_user}","gists_url":"https://api.github.com/users/silfverstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/silfverstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silfverstrom/subscriptions","organizations_url":"https://api.github.com/users/silfverstrom/orgs","repos_url":"https://api.github.com/users/silfverstrom/repos","events_url":"https://api.github.com/users/silfverstrom/events{/privacy}","received_events_url":"https://api.github.com/users/silfverstrom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silfverstrom/duns.js","description":"Schema validator ","fork":false,"url":"https://api.github.com/repos/silfverstrom/duns.js","forks_url":"https://api.github.com/repos/silfverstrom/duns.js/forks","keys_url":"https://api.github.com/repos/silfverstrom/duns.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silfverstrom/duns.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silfverstrom/duns.js/teams","hooks_url":"https://api.github.com/repos/silfverstrom/duns.js/hooks","issue_events_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/events{/number}","events_url":"https://api.github.com/repos/silfverstrom/duns.js/events","assignees_url":"https://api.github.com/repos/silfverstrom/duns.js/assignees{/user}","branches_url":"https://api.github.com/repos/silfverstrom/duns.js/branches{/branch}","tags_url":"https://api.github.com/repos/silfverstrom/duns.js/tags","blobs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silfverstrom/duns.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silfverstrom/duns.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/silfverstrom/duns.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silfverstrom/duns.js/statuses/{sha}","languages_url":"https://api.github.com/repos/silfverstrom/duns.js/languages","stargazers_url":"https://api.github.com/repos/silfverstrom/duns.js/stargazers","contributors_url":"https://api.github.com/repos/silfverstrom/duns.js/contributors","subscribers_url":"https://api.github.com/repos/silfverstrom/duns.js/subscribers","subscription_url":"https://api.github.com/repos/silfverstrom/duns.js/subscription","commits_url":"https://api.github.com/repos/silfverstrom/duns.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/silfverstrom/duns.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/silfverstrom/duns.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/silfverstrom/duns.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/silfverstrom/duns.js/contents/{+path}","compare_url":"https://api.github.com/repos/silfverstrom/duns.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silfverstrom/duns.js/merges","archive_url":"https://api.github.com/repos/silfverstrom/duns.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silfverstrom/duns.js/downloads","issues_url":"https://api.github.com/repos/silfverstrom/duns.js/issues{/number}","pulls_url":"https://api.github.com/repos/silfverstrom/duns.js/pulls{/number}","milestones_url":"https://api.github.com/repos/silfverstrom/duns.js/milestones{/number}","notifications_url":"https://api.github.com/repos/silfverstrom/duns.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silfverstrom/duns.js/labels{/name}","releases_url":"https://api.github.com/repos/silfverstrom/duns.js/releases{/id}","created_at":"2015-05-26T08:23:24Z","updated_at":"2015-06-11T21:01:34Z","pushed_at":"2015-06-23T21:13:07Z","git_url":"git://github.com/silfverstrom/duns.js.git","ssh_url":"git@github.com:silfverstrom/duns.js.git","clone_url":"https://github.com/silfverstrom/duns.js.git","svn_url":"https://github.com/silfverstrom/duns.js","homepage":null,"size":561,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37"},"html":{"href":"https://github.com/silfverstrom/duns.js/pull/37"},"issue":{"href":"https://api.github.com/repos/silfverstrom/duns.js/issues/37"},"comments":{"href":"https://api.github.com/repos/silfverstrom/duns.js/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silfverstrom/duns.js/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/silfverstrom/duns.js/statuses/f31ea5478fed0a8ad3f1a9fdccfc1e9cc8956d1c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":70,"deletions":6,"changed_files":6}}