plumatic / schema

Clojure(Script) library for declarative data description and validation
Other
2.4k stars 256 forks source link

Support keyword arguments in `s/defn` #452

Open frenchy64 opened 6 months ago

frenchy64 commented 6 months ago
(s/defn foo [& {:keys [bar]}])
Bad & binding form: currently only bare symbols and vectors supported

Note that clojure.core/defn was recently enhanced to be able to provide a map in this case.

(defn bar [& {:keys [bar]}])
(bar {:bar true})