metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.46k stars 208 forks source link

Malli generates invalid clj-kondo type spec for [:map [:keys [:+ :keyword]]] #820

Closed borkdude closed 11 months ago

borkdude commented 1 year ago

See https://github.com/clj-kondo/clj-kondo/issues/1922

Malli generates an invalid clj-kondo type spec for [:map [:keys [:+ :keyword]]]: it emits an {:op :rest} which should only be used to describe the type of varargs arguments. It is invalid to use this for describing map keys. Just use :seqable or something.