Tommi Reiman

Results 442 comments of Tommi Reiman

Yes, it does. You can control the size requirements with `:min` and `:max` property. ```clojure (m/validate [:vector :any] []) ; => true (m/validate [:vector {:min 1} :any] []) ; =>...

Interesting. Tested with few alternatives: ## Plumatic ```clojure (require '[schema.core :as schema]) (schema/validate #"thing" "thing\n") ; => "thing\n" (match) ``` ## JSON Schema Spec ```javascript {"type": "string", "pattern": "^thing$"} //...

Do you have more external references (on languages / libraries etc) on what is the correct way to handle this? Options: 1. keep the current way as others (JSON Schema...

there is no built-in utility at the moment for it, but should be easy to build one, on top of the `malli.util`, see https://github.com/metosin/malli/issues/82. for best effort checking, you could...

PR most welcome on `mu/intersection` or such.

Interesting. All schemas run both `:decode` and `:encode` in children in same order. I also think this is wrong. I need to revisit the ordering, thanks for reporting. Tested with...

Documenting to myself, current order on decode: ```clojure (let [log (atom []) log! (fn [s p] (fn [x] (swap! log conj [(:i (m/properties s)) p]) x))] (m/decode [:map {:i 0}...

What would be more correct answer to this? `me/humanize` follows the same structure as the data, so the latter error is inside a vector (as the value itself). Errors are...

ok, could be improved via throwing better exception via `m/fail!`