mirror of https://github.com/penpot/penpot.git
✨ Make sm/coercer lazy
This commit is contained in:
parent
a9733c792d
commit
babd481b7f
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Reference in New Issue