This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-14
Channels
- # announcements (3)
- # aws (7)
- # babashka (108)
- # beginners (222)
- # bristol-clojurians (3)
- # calva (8)
- # chlorine-clover (1)
- # cider (14)
- # clj-kondo (4)
- # cljdoc (6)
- # cljs-dev (89)
- # cljsrn (13)
- # clojars (6)
- # clojure (89)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-losangeles (11)
- # clojure-nl (6)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (9)
- # clojurescript (47)
- # conjure (18)
- # datomic (7)
- # docker (1)
- # figwheel (43)
- # figwheel-main (2)
- # fulcro (31)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # nrepl (14)
- # off-topic (24)
- # pathom (5)
- # pedestal (5)
- # rdf (4)
- # re-frame (49)
- # reagent (12)
- # reitit (9)
- # rum (21)
- # shadow-cljs (109)
- # tools-deps (35)
- # vim (8)
- # wasm (1)
Hi, does reitit play well with a component library like https://github.com/stuartsierra/component ?
is there a way to make the swagger select box have value attribute which is an id but shows text I am using spec, up until now i have been using a spec with a set of values but the text and value are the same so looking for a way to have separate values.
@oliver.marks don't think so. You could ask from swagger-ui repo via GitHub issue
sounds like it may be possible by giving the enums descriptions https://swagger.io/docs/specification/data-models/enums/ can wee do that in reitit swagger currently ?
I did however come across this with a bit of a discussionĀ https://github.com/OAI/OpenAPI-Specification/issues/681
Hey guys, new guy here so please bear with me. I'm trying to define top-level middleware via the :middleware
keyword when creating the ring-handler
but keep encountering errors when running the server. Here's what I tried:
(defn wrap-test [handler]
(fn [req] (handler req)))
(mount/defstate app-routes
:start
(ring/ring-handler
(ring/router
[...])
(ring/routes
...)
{:middleware [#(wrap-test %)]))
and I keep getting errors telling me that wrong number of args are being passed into wrap-test
. I'm currently using the latest reitit (0.4.2). I can simply wrap the entire ring-handler
inside a wrapper and that works just fine, though I wanted to organise things a bit and hence this approach. I got the above code from going through the docs, but have I done something wrong here? Thanks in advance!