From a0698750e3fd6e8e05073161d6fcc417b2fcf440 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 14 Jun 2023 12:58:10 +0200 Subject: [PATCH] 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. --- src/main/cljc/dda/c4k_website/website.cljc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/cljc/dda/c4k_website/website.cljc b/src/main/cljc/dda/c4k_website/website.cljc index 5db1e72..f5beb10 100644 --- a/src/main/cljc/dda/c4k_website/website.cljc +++ b/src/main/cljc/dda/c4k_website/website.cljc @@ -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)