Expose datomish.schema/validate-schema so that schema management can use it.
This commit is contained in:
parent
5fa26c58a8
commit
bd0a56e501
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@
|
|||
(raise "Unknown attribute " attr ", expected one of " (sorted-set (keys schema))
|
||||
{:error :schema/valueType, :attribute attr}))))
|
||||
|
||||
(defn- validate-schema [schema]
|
||||
(defn validate-schema [schema]
|
||||
(doseq [[a kv] schema]
|
||||
(when-not (:db/valueType kv)
|
||||
(throw (ex-info (str "Bad attribute specification for " a ": should have {:db/valueType ...}")
|
||||
|
|
Loading…
Reference in a new issue