Make sm/coercer lazy

This commit is contained in:
Andrey Antukh 2025-12-02 17:25:14 +01:00
parent a9733c792d
commit babd481b7f
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@
(defn coercer
[schema & {:as opts}]
(let [decode-fn (decoder schema json-transformer)
(let [decode-fn (lazy-decoder schema json-transformer)
check-fn (check-fn schema opts)]
(fn [data]
(-> data decode-fn check-fn))))