malli
malli copied to clipboard
High-performance data-driven data specification library for Clojure/Script.
If I write ```clj (require '[malli.experimental :as mx]) (require '[malli.core :as m]) (mx/defn ^:malli/always f [xs :- [:* :int]] (malli.core/validate [:* :int] xs)) (f 1) ;; => false (f [1])...
I'm attempting to spec a function where I destructure named arguments with defaults. I'm not sure where I'm going wrong here: ```clojure (mx/defn init! :- :map [& {:keys [level :-...
Depending on the order of alternative types including **:nil**, the Swagger JSON can become invalid. With **:nil** at the end, it is fine: `[:days-paid-leave-sick-child {:optional true} [:or [:int {:min 0...
Occasionally, it is necessary to drop down to Java interop. When that happens, I don't want to lose the ease and simplicity of Malli's validation, and I don't want to...
I think I found a bug regarding Swagger Schema generation: Only definitions from schemas referred to in responses are shown as global definitions in `/definitions`, but those from requests are...
* malli version: 0.13.0 The following is the test example in clj. ```clj ;; malli-test/main.clj (ns malli-test.main (:require [malli.core :as m] [malli.instrument :as mi])) (m/=> power [:=> [:cat :int] [:int...
pulled from #993 # Tangential Depending on the validation it doesn't make sense to display all error messages. Consider: ```clojure (-> [:and [:vector :any] [:fn {:error/message "should be distinct"} #(=...
Malli [does not allow](https://github.com/metosin/malli/blob/60e0865fa7560882a0a4dc53aeb94a6beeaa5938/src/malli/core.cljc#L1764-L1765) wrapping the `:cat` in a function schema with e.g. `:and` or `:multi`, making it impossible(?) to spec a function where one argument determines the shape of...
Are there any efforts or plans to support ClojureDart? If not would you accept a PR that adds such support?
Extracted @bsless https://github.com/metosin/malli/pull/985#issuecomment-1878713682 into separate issue. > > so, you would not like to expose the namespaces? > > Exactly. It's an implementation detail and can just add noise and...