Tommi Reiman

Results 447 comments of Tommi Reiman

bit related: https://github.com/metosin/malli/issues/786#issuecomment-1328021312

Something like this: ```clojure (defn -class-schema [c] (m/-simple-schema {:type c :pred #(instance? c %) :type-properties {:error/message (str "not an instance of class " c)}})) (defn class-registry ([] (class-registry nil)) ([_options]...

There is no support for defining types for destructured keys atm. The Schematize Syntax is taken from [Plumatic Schema](https://github.com/plumatic/schema) as Cursive understands that too. Support for this would be simple...

Yes, this is because of the auto-flattening of sequence schemas so it's a feature. You can escape it by wrapping it with non-sequence schema like `:schema`: ```clojure (mx/defn ^:malli/always f...

would you have time to document this? e.g. PR most welcome

No auto-wrapping now, flattening is needed to describe Varargs. Thanks!

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