This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-19
Channels
- # aleph (1)
- # announcements (3)
- # aws (1)
- # beginners (95)
- # calva (15)
- # clojars (4)
- # clojure (84)
- # clojure-android (3)
- # clojure-austin (1)
- # clojure-chicago (1)
- # clojure-dev (66)
- # clojure-europe (3)
- # clojure-italy (15)
- # clojure-nl (13)
- # clojure-uk (33)
- # clojuredesign-podcast (9)
- # clojurescript (6)
- # cursive (68)
- # data-science (4)
- # datavis (1)
- # datomic (13)
- # emacs (4)
- # fulcro (2)
- # jobs (4)
- # jobs-discuss (89)
- # luminus (23)
- # nrepl (6)
- # off-topic (2)
- # onyx (2)
- # pathom (4)
- # pedestal (11)
- # re-frame (9)
- # reagent (8)
- # reitit (5)
- # shadow-cljs (131)
- # spacemacs (13)
- # sql (8)
- # vim (8)
- # xtdb (7)
- # yada (4)
I added authorization header for my endpoints with :parameters {:header {:authorization string?}}
. It works but a failure is met with a coercion error and a 500 status. I'd like to rather return a 401.
Did you find this already? https://github.com/metosin/reitit/blob/master/doc/ring/exceptions.md
Ahhh, coercion error. You probably want to define :authorization
as optional and validate it later manually and return unauthorized.
Coercion error sounds though like there's happening something unusual. Are you using default coercion/coerce-response-middleware
and coercion/coerce-request-middleware
?
Hi! can you help me to understand how I can change Model name in generated swagger ui https://i.stack.imgur.com/VwILh.png