From 972b23e6c06e47402b16f4564c6feb83a47967a7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 27 Nov 2025 12:12:03 +0100 Subject: [PATCH] :bug: Fix incorect pred build on ::sm/text schema --- common/src/app/common/schema.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/app/common/schema.cljc b/common/src/app/common/schema.cljc index 04be1eb9e9..f452c7b66e 100644 --- a/common/src/app/common/schema.cljc +++ b/common/src/app/common/schema.cljc @@ -919,7 +919,7 @@ :pred #(and (string? %) (not (str/blank? %))) :property-pred (fn [{:keys [min max] :as props}] - (if (seq props) + (if (or min max) (fn [value] (let [size (count value)] (cond