malli 2024-10-12

How can I write schema for function with highly volatile input? For example one option is: [:=> [:cat :keyword MySpec1 :string [:? [:set MySpec2]] [:? MySpec3] [:? :int] [:* :keyword]] :int] and second: [:=> [:cat :keyword MySpec1 :string :MySpec4] :int] I tried different approach and encounter either invalid-schema error or arity problems...

is :any out of the question?

:any would be nice if Malli could instrument implementations of multimethod, called inside this function. As far as I know instrumenting multimethods isn't implemented for now... Available option for sure is to validate data manually inside multimethod bodies, but I already have Malli's invalid-input error handling around whole project