clojure-spec

kenny 2025-08-06T01:15:41.630289Z

When calling s/describe on a fdef, would it make sense to only include :fn when it is specified? Current Behavior

(s/fdef foo 
  :args (s/cat)
  :ret any?)
=> user/foo

(s/describe (s/get-spec `foo))
=> (fspec :args (cat) :ret any? :fn nil)
Desired Behavior
(s/describe (s/get-spec `foo))
=> (fspec :args (cat) :ret any?)