Welcome! Please see the About page for a little more info on how this works.

0 votes
in Spec by

The form of an empty fspec returns {{nil}} at {{:args}} and {{:fn}}:

(s/form (s/fspec)) => (clojure.spec.alpha/fspec :args nil :ret clojure.core/any? :fn nil)

The problem is, that the specs from CLJ-2112 don't validate that form. I suggest to implement * of {{fspec-impl}} like that of {{map-spec-impl}} which omits {{nil}} values.

Patch: clj-2368.patch

2 Answers

0 votes
by

Comment made by: alexmiller

Sounds right.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2368 (reported by akiel)
...