Tommi Reiman
Tommi Reiman
Agree. Resolution for vector-syntax is resolved with: * https://github.com/metosin/malli/issues/269 * https://github.com/metosin/malli/issues/270 need to figure out how to create schema definitions without too much duplicaition (ast vs vector vs lite).
That is true. But Map-syntax is better anyway for programmatically creating schemas? Bit related: Had an idea to misuse the list + symbol syntax as a "malli-lite2" syntax, but buried...
marked as `invalid` as not sure if this makes sense. More code, small benefits.
I think a generic solution to have a Schema wrapper that allows one to create the current snapshot of the `Schema` instance programmatically. This would work with all Schema types,...
... with suger: ```clojure (defn multimethod-schema [mm] (let [dispatch (.dispatchFn mm)] (m/into-schema :multi {:dispatch dispatch} (map (fn [[type f]] [type (f {dispatch type})]) (methods mm))))) ``` in use: ```clojure (mu/multimethod-schema...
I'm marking this a bug and leaving open, should not blow up. For your case, multi-dimensional seq can be presented either using normal `:sequential` (best fit for homogenous sequences) or...
It is a feature. Tools like `me/humanize` pull values out of the `:schema` programmatically using `:path`. Reified Schemas can close over registries, which are not (currently) available in the form....
I see. There are at least two options: 1) PR/config to CIDER to use the `-print-method` when printing data (I think it would be good anyways, many libraries (like Manifold)...
Hi. Just tested, the instrumentation is not recursive at the moment. Should be fixable. here's a hand-rolled recursion: ```clj (((m/-instrument {:schema [:=> [:cat :int] [:=> [:cat :int] :int]]} (fn [x]...
so, the instrumentation should look for all child schemas and instrument those too. There is `m/walk` to do this easily, but what would be the default here? 1. no recursion...