malli
malli copied to clipboard
High-performance data-driven data specification library for Clojure/Script.
I have a schema that is made up of two more primitive schema joined with :and. I want to add an error message that is meaningful for this specific combinations...
I have a map of keyword to function, and the functions are hash-quoted as vars so they can be reloaded at the repl: ```clojure (def example {:a #'a :b #'b})...
Closes #722. Please let me know if there's any tests or anything that I should add to - I couldn't find anything for `-int-schema`.
Hi, I've run into a peculiar issue, here's a distillation: ```clojure (def registry* (atom {:string (m/-string-schema) :maybe (m/-maybe-schema) :map (m/-map-schema)})) (defn register! [type ?schema] (swap! registry* assoc type ?schema)) (mr/set-default-registry!...
This allows a very basic json-schema->malli conversion. Still missing for this PR - [ ] cleanup TODOS; - [ ] ensure function names are sane; - [ ] ensure all...
I'm really a great fan of this library, and there is this feeling that it is becoming kind of one of Clojure's missing pieces. I think the library core is...
Another attempt at https://github.com/metosin/malli/pull/507
``` (m/validate #?(:clj java.util.regex.Pattern, :cljs js/RegExp) #"foo") ;; :malli.core/child-error {:type :re, :properties nil, :children nil, :min 1, :max 1} ``` I'm quite sure the implementation should check if the value...
My database query functions often accept a collection of IDs to perform the query on. Depending on the origin of the request, they may be seqs, vectors or sets. Would...
Everything works great in development mode, but in production mode I have an errors with such function like `mu/merge` or `m/walk`. My shadow-cljs config ``` {:deps true :builds {:storybook {:target...