From a9733c792d4293c483dfa8904fc47deb37017359 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 2 Dec 2025 17:24:55 +0100 Subject: [PATCH] :sparkles: Make check-fn completly lazy --- common/src/app/common/schema.cljc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/schema.cljc b/common/src/app/common/schema.cljc index 303b427c3e..9672c17e71 100644 --- a/common/src/app/common/schema.cljc +++ b/common/src/app/common/schema.cljc @@ -284,9 +284,9 @@ (defn check-fn "Create a predefined check function" [s & {:keys [hint type code]}] - (let [s (schema s) - validator* (delay (m/validator s)) - explainer* (delay (m/explainer s)) + (let [s (delay (schema s)) + validator* (delay (m/validator @s)) + explainer* (delay (m/explainer @s)) hint (or ^boolean hint "check error") type (or ^boolean type :assertion) code (or ^boolean code :data-validation)]