malli 2025-10-30

Are there any examples of using malli only in dev, where you don’t want it as a release dependency? does malli provide any direct support for this? (I’ve not found anything in my searches)

I think it ends up looking like spec, you have a separate ns with all your schemas and m/=> calls, analogous to https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc/spec.clj

That seems to just be schemas. Presumably I would need some sort of macros to wrap validation and explain calls, so they can be elided in release code.

ah so you're after dev-time inline assertions? haven't seen that

the function specs may be sufficient. Thanks.

👍 1

thanks @jyn514 - I’ll take a look at malli.instrument