reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
wombawomba 2021-06-15T07:51:00.091600Z

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.

Stel Abrego 2021-06-15T19:15:42.093600Z

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!