This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-29
Channels
- # announcements (10)
- # aws (4)
- # babashka (42)
- # beginners (208)
- # bristol-clojurians (2)
- # calva (13)
- # chlorine-clover (52)
- # cider (5)
- # clara (22)
- # clj-kondo (2)
- # clojars (14)
- # clojure (107)
- # clojure-europe (24)
- # clojure-nl (4)
- # clojure-uk (6)
- # clojurescript (3)
- # conjure (20)
- # cursive (23)
- # datascript (2)
- # datomic (15)
- # figwheel-main (3)
- # fulcro (23)
- # jobs (3)
- # kaocha (5)
- # keechma (3)
- # local-first-clojure (1)
- # malli (13)
- # off-topic (16)
- # planck (6)
- # re-frame (8)
- # reagent (3)
- # reitit (1)
- # releases (1)
- # remote-jobs (1)
- # rum (1)
- # sci (37)
- # shadow-cljs (16)
- # tools-deps (158)
- # vim (3)
- # xtdb (8)
say I have an endpoint that's configured to receive the following:
:parameters {:form :login/credentials}
where :login/credentials
is defined as
(s/def :login/email
(st/spec {:spec string?}))
(s/def :login/password
(st/spec {:spec string?}))
(s/def :login/credentials
(st/spec {:spec (s/keys :req [:login/email
:login/password])))
and I have followed the ring coercion guide (https://cljdoc.org/d/metosin/reitit/0.5.5/doc/ring/pluggable-coercion). Am I wrong to assume that :parameters
in the request map coming from a conforming request such as
[email protected]&password=supersecret!
should be coerced into
{:login/email "" :login/password "supersecret!"}
? Reason I'm asking is that I'm currently getting unqualified keywords:
{:email "[email protected]" :password "supersecret!"}
and I'm not sure whether it's a mismatch in my expectation or a misconfiguration at some point