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:
erik 2023-06-14 12:58:10 +02:00
parent 4d6af0e13f
commit a0698750e3

View file

@ -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)