Implement function defs for keys
Using the keys for validation in browser.cljs will convert the map in the input field to a vector, causing the spec to fail in the browser.
This commit is contained in:
parent
4d6af0e13f
commit
a0698750e3
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@
|
|||
|
||||
(s/def ::auth (s/coll-of websiteauth?))
|
||||
|
||||
(def websites? (s/keys :req-un [::websites]))
|
||||
|
||||
(def auth? (s/keys :req-un [::auth]))
|
||||
|
||||
(defn-spec get-hash-from-sha256sum-output string?
|
||||
[sha256sum-output string?]
|
||||
(if (nil? sha256sum-output)
|
||||
|
|
Loading…
Reference in a new issue