fix: validate property values

This commit is contained in:
Gabriel Horner
2024-04-12 15:27:26 -04:00
parent 7003903edd
commit 8cbc0ac32a
3 changed files with 29 additions and 46 deletions

View File

@@ -16,9 +16,7 @@
(defn validate-client-db
"Validate datascript db as a vec of entity maps"
[db ent-maps* {:keys [verbose group-errors closed-maps]}]
(let [ent-maps ent-maps*
;; TODO: Fix
;; ent-maps (db-malli-schema/update-properties-in-ents ent-maps*)
(let [ent-maps (db-malli-schema/update-properties-in-ents db ent-maps*)
schema (db-validate/update-schema db-malli-schema/DB db {:closed-schema? closed-maps})]
(if-let [errors (->> ent-maps
(m/explain schema)