{"action":"closed","issue":{"url":"https://api.github.com/repos/Prismatic/schema/issues/68","labels_url":"https://api.github.com/repos/Prismatic/schema/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Prismatic/schema/issues/68/comments","events_url":"https://api.github.com/repos/Prismatic/schema/issues/68/events","html_url":"https://github.com/Prismatic/schema/issues/68","id":29128481,"number":68,"title":"Order seems to matter when using both","user":{"login":"aviflax","id":141844,"avatar_url":"https://avatars.githubusercontent.com/u/141844?v=3","gravatar_id":"","url":"https://api.github.com/users/aviflax","html_url":"https://github.com/aviflax","followers_url":"https://api.github.com/users/aviflax/followers","following_url":"https://api.github.com/users/aviflax/following{/other_user}","gists_url":"https://api.github.com/users/aviflax/gists{/gist_id}","starred_url":"https://api.github.com/users/aviflax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviflax/subscriptions","organizations_url":"https://api.github.com/users/aviflax/orgs","repos_url":"https://api.github.com/users/aviflax/repos","events_url":"https://api.github.com/users/aviflax/events{/privacy}","received_events_url":"https://api.github.com/users/aviflax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-03-10T20:13:42Z","updated_at":"2015-09-03T04:51:39Z","closed_at":"2015-09-03T04:51:39Z","body":"First a helper schema:\r\n\r\n```clojure\r\n(def not-nil (pred (complement nil?)))\r\n```\r\n\r\nThis works fine:\r\n\r\n```clojure\r\n=> (validate (both not-nil [Int]) nil)\r\nExceptionInfo Value does not match schema: (not (#<core$complement$fn__4048 clojure.core$complement$fn__4048@3d722bd> nil))  schema.core/validate (core.clj:165)\r\n```\r\n\r\nBut this doesn’t:\r\n```clojure\r\n=> (validate (both [Int] not-nil) nil)\r\nnil\r\n```\r\n\r\nThis is counterintuitive."}}