{"action":"created","issue":{"url":"https://api.github.com/repos/Prismatic/schema/issues/272","labels_url":"https://api.github.com/repos/Prismatic/schema/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/Prismatic/schema/issues/272/comments","events_url":"https://api.github.com/repos/Prismatic/schema/issues/272/events","html_url":"https://github.com/Prismatic/schema/issues/272","id":106887165,"number":272,"title":"Question: validating a function as part of a schema","user":{"login":"xpe","id":4576329,"avatar_url":"https://avatars.githubusercontent.com/u/4576329?v=3","gravatar_id":"","url":"https://api.github.com/users/xpe","html_url":"https://github.com/xpe","followers_url":"https://api.github.com/users/xpe/followers","following_url":"https://api.github.com/users/xpe/following{/other_user}","gists_url":"https://api.github.com/users/xpe/gists{/gist_id}","starred_url":"https://api.github.com/users/xpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpe/subscriptions","organizations_url":"https://api.github.com/users/xpe/orgs","repos_url":"https://api.github.com/users/xpe/repos","events_url":"https://api.github.com/users/xpe/events{/privacy}","received_events_url":"https://api.github.com/users/xpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-16T23:54:06Z","updated_at":"2015-09-17T00:07:02Z","closed_at":null,"body":"My use case is that I want to validate a map with callback function. For example: `{:action (fn [] nil)}`.\r\n\r\nClojure has `fn?` -- that's what I use when I use Clojure preconditions. What, if anything, would correspond in schema?\r\n"},"comment":{"url":"https://api.github.com/repos/Prismatic/schema/issues/comments/140929851","html_url":"https://github.com/Prismatic/schema/issues/272#issuecomment-140929851","issue_url":"https://api.github.com/repos/Prismatic/schema/issues/272","id":140929851,"user":{"login":"w01fe","id":135078,"avatar_url":"https://avatars.githubusercontent.com/u/135078?v=3","gravatar_id":"","url":"https://api.github.com/users/w01fe","html_url":"https://github.com/w01fe","followers_url":"https://api.github.com/users/w01fe/followers","following_url":"https://api.github.com/users/w01fe/following{/other_user}","gists_url":"https://api.github.com/users/w01fe/gists{/gist_id}","starred_url":"https://api.github.com/users/w01fe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w01fe/subscriptions","organizations_url":"https://api.github.com/users/w01fe/orgs","repos_url":"https://api.github.com/users/w01fe/repos","events_url":"https://api.github.com/users/w01fe/events{/privacy}","received_events_url":"https://api.github.com/users/w01fe/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T00:07:02Z","updated_at":"2015-09-17T00:07:02Z","body":"`s/fn` creates a schematized function -- it's like `s/defn` for anonymous functions.  \r\n\r\nhttps://github.com/Prismatic/schema/blob/master/test/cljx/schema/core_test.cljx#L822\r\n\r\nhttps://github.com/Prismatic/schema/blob/master/test/cljx/schema/core_test.cljx#L834"}}