malli

2024-10-12T20:47:33.416939Z

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...

respatialized 2024-10-12T21:23:06.773189Z

is :any out of the question?

2024-10-12T21:36:06.031379Z

: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