We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb2c11 commit 7c9941aCopy full SHA for 7c9941a
src/malli/util.cljc
@@ -379,6 +379,8 @@
379
380
(defn -reducing [f]
381
(fn [_ children options]
382
+ (when (empty? children)
383
+ (m/-fail! ::reducing-children-must-be-non-empty))
384
(let [[first & rest :as children] (mapv #(m/schema % options) children)]
385
[children (mapv m/form children) (delay (reduce #(f %1 %2 options) first rest))])))
386
0 commit comments