metosin / malli

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

OutOfMemoryError Java heap space exhausted with wrong schema #1061

Open irigarae opened 1 month ago

irigarae commented 1 month ago

I stumbled upon this:

$ clj
Clojure 1.11.1
user=> (require '[malli.core :as m])
nil
user=> (m/schema [(m/schema :any)])
Execution error (OutOfMemoryError) at malli.impl.util/-vmap (util.cljc:31).
Java heap space

Not sure it's a big issue, but maybe it should throw earlier an invalid schema.