metosin / malli

High-performance data-driven data specification library for Clojure/Script.
Eclipse Public License 2.0
1.5k stars 211 forks source link

Shadow-cljs warning after upgrading malli #1093

Closed yenda closed 2 months ago

yenda commented 2 months ago

metosin/malli '0.16.1' to '0.16.3'

1 Warnings
Warning :invalid-arithmetic in [malli/core.cljc](http://localhost:9630/build/null) at 1300:62
cljs.core/<, all arguments must be numbers, got [number #{nil clj-nil}] instead
1297 |                         :else (let [size (when (and bounded (not (-safely-countable? x)))
1298 |                                            bounded)]
1299 |                                 (loop [acc acc, i 0, [x & xs :as ne] (seq x)]
1300 |                                   (if (and ne (or (not size) (< i size)))
1301 |                                     (cond-> (or (explainer x (conj in (fin i x)) acc) acc) xs (recur (inc i) xs))
1302 |                                     acc)))))))
1303 |                 (-parser [_] (->parser (if bounded -validator -parser) (if bounded identity parse)))
1304 |                 (-unparser [_] (->parser (if bounded -validator -unparser) (if bounded identity unparse)))
yenda commented 2 months ago

Thank you that was so fast!