This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-15
Channels
- # babashka (41)
- # beginners (47)
- # calva (7)
- # cider (5)
- # cljsrn (2)
- # clojure (38)
- # clojure-europe (74)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (38)
- # clojurescript (42)
- # component (30)
- # core-async (2)
- # cryogen (6)
- # cursive (47)
- # datahike (7)
- # datomic (18)
- # defnpodcast (1)
- # fulcro (17)
- # graalvm (8)
- # graphql (4)
- # helix (5)
- # honeysql (5)
- # introduce-yourself (1)
- # jobs (5)
- # jobs-discuss (4)
- # malli (20)
- # meander (4)
- # mental-health (1)
- # off-topic (41)
- # pathom (18)
- # podcasts-discuss (2)
- # re-frame (20)
- # react (1)
- # reagent (22)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # reveal (2)
- # sci (10)
- # shadow-cljs (42)
- # sql (20)
- # tools-deps (7)
- # vim (2)
- # xtdb (51)
How can I capture fragments (i.e. the part after #
in a URL) with reitit.frontend.easy
? My handler gets passed reitit.core.Match
, which doesn't seem to contain the fragment data.
Hey y'all! I'm making a hacker news clone using reitit and I'm having trouble using Malli with Reitit. I'm getting a malli.core/invalid-type error on my endpoint schema, and I'm just not sure what I'm messing up. Here's the full error:
Request coercion failed: #reitit.coercion.CoercionError{:schema [:map {:closed true} [:email string?] [:password string?]], :value nil, :errors (#Error{:path [], :in [], :schema [:map {:closed true} [:email string?] [:password string?]], :type :malli.core/invalid-type}), :transformed nil}
and my endpoint looks like this within the router:
["/signup"
{:post
{:name ::signup, :handler signup-handler, :parameters {:form [:map [:email string?] [:password string?]]}}}]
Does this error mean that the form parameters are not right, or is this saying the schema itself is incorrect?
EDIT: Ahh I think I found the problem. I had my (coerce-request-interceptor) before my (multipart-interceptor) in the chain so it wasn't able to read the form data!