Fork me on GitHub
#malli
<
2022-04-28
>
dumrat17:04:17

Why?

(m/validate 
   [:map
    [:type :keyword]
    [:name {:min 1 :max 128} string?]]
   {:type :ledger :name ""}) => true

dharrigan18:04:31

(m/validate
  [:map
   [:type :keyword]
   [:name [:string {:min 1 :max 128}]]]
  {:type :ledger :name ""}) ;; false

dharrigan18:04:50

(m/validate
  [:map
   [:type :keyword]
   [:name [:string {:min 1 :max 128}]]]
  {:type :ledger :name "foo"})  ;; true