{"action":"created","issue":{"url":"https://api.github.com/repos/wookieb/predicates/issues/27","repository_url":"https://api.github.com/repos/wookieb/predicates","labels_url":"https://api.github.com/repos/wookieb/predicates/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/wookieb/predicates/issues/27/comments","events_url":"https://api.github.com/repos/wookieb/predicates/issues/27/events","html_url":"https://github.com/wookieb/predicates/pull/27","id":352704103,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5OTUxNDcy","number":27,"title":"Return false if structure check is called with an array","user":{"login":"mateuszmielewczyk","id":42584623,"node_id":"MDQ6VXNlcjQyNTg0NjIz","avatar_url":"https://avatars1.githubusercontent.com/u/42584623?v=4","gravatar_id":"","url":"https://api.github.com/users/mateuszmielewczyk","html_url":"https://github.com/mateuszmielewczyk","followers_url":"https://api.github.com/users/mateuszmielewczyk/followers","following_url":"https://api.github.com/users/mateuszmielewczyk/following{/other_user}","gists_url":"https://api.github.com/users/mateuszmielewczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszmielewczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszmielewczyk/subscriptions","organizations_url":"https://api.github.com/users/mateuszmielewczyk/orgs","repos_url":"https://api.github.com/users/mateuszmielewczyk/repos","events_url":"https://api.github.com/users/mateuszmielewczyk/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszmielewczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-21T20:48:28Z","updated_at":"2018-08-22T07:16:24Z","closed_at":"2018-08-22T04:48:43Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/wookieb/predicates/pulls/27","html_url":"https://github.com/wookieb/predicates/pull/27","diff_url":"https://github.com/wookieb/predicates/pull/27.diff","patch_url":"https://github.com/wookieb/predicates/pull/27.patch"},"body":"Currently if you make a structure where all values of an object are supposed to be undefined[Or], the check will return `true` if you supply it with an Array\r\nexample:\r\n```\r\nconst structureCheck = is.structure({ key: is.undefinedOr(is.string) });\r\nconsole.log(structureCheck([]));\r\n```\r\nthe console.log will write out `true`"},"comment":{"url":"https://api.github.com/repos/wookieb/predicates/issues/comments/414935702","html_url":"https://github.com/wookieb/predicates/pull/27#issuecomment-414935702","issue_url":"https://api.github.com/repos/wookieb/predicates/issues/27","id":414935702,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDkzNTcwMg==","user":{"login":"mateuszmielewczyk","id":42584623,"node_id":"MDQ6VXNlcjQyNTg0NjIz","avatar_url":"https://avatars1.githubusercontent.com/u/42584623?v=4","gravatar_id":"","url":"https://api.github.com/users/mateuszmielewczyk","html_url":"https://github.com/mateuszmielewczyk","followers_url":"https://api.github.com/users/mateuszmielewczyk/followers","following_url":"https://api.github.com/users/mateuszmielewczyk/following{/other_user}","gists_url":"https://api.github.com/users/mateuszmielewczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/mateuszmielewczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateuszmielewczyk/subscriptions","organizations_url":"https://api.github.com/users/mateuszmielewczyk/orgs","repos_url":"https://api.github.com/users/mateuszmielewczyk/repos","events_url":"https://api.github.com/users/mateuszmielewczyk/events{/privacy}","received_events_url":"https://api.github.com/users/mateuszmielewczyk/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T07:16:24Z","updated_at":"2018-08-22T07:16:24Z","author_association":"NONE","body":"Isn't it counter-intuitive though? If I'm defining a structure of an Object I for sure don't want to allow an Array there"}}
{"actor":{"display_login":"mateuszmielewczyk"}}