metosin / malli

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

Wrapping fn args in a multi-schema #994

Open gpind opened 5 months ago

gpind commented 5 months ago

Malli does not allow wrapping the :cat in a function schema with e.g. :and or :multi, making it impossible(?) to spec a function where one argument determines the shape of another. Can this restriction be removed or relaxed?

ikitommi commented 5 months ago

The restriction doesn't make much sense. should be relaxed.