This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-02
Channels
- # aleph (14)
- # boot (4)
- # cider (3)
- # clara (1)
- # cljs-dev (62)
- # cljsrn (20)
- # clojure (81)
- # clojure-berlin (2)
- # clojure-russia (76)
- # clojure-spec (35)
- # clojure-turkiye (1)
- # clojurescript (84)
- # cursive (2)
- # data-science (6)
- # datomic (4)
- # hoplon (92)
- # lumo (35)
- # om-next (1)
- # pedestal (2)
- # re-frame (2)
- # reagent (36)
- # ring-swagger (10)
- # unrepl (30)
- # untangled (124)
Hi. Heading for summer holidays, but [metosin/compojure-api "2.0.0-alpha5"]
is out with swagger-support for spec. 2.0.0 will be finalized after holidays, hopefully in August. There is a small demo-app to play with the spec + swagger: https://github.com/metosin/c2. Blog going out as soon as it’s reviewed.
Hi folks, I’m trying to use the same metadata handler (via restructure-params
) in nested contexts, and it seems only the top-most one has effect. The use case is checking user permissions, which get more granular towards the edges of the routing table…
I’ve been searching through issues and scouring sample projects and cannot find any hints
even println
‘s in the restructure-params
multimethod isn’t getting called for the nested context
‘s
I figured it out… I break up my different endpoints into separate
defapi
vars so I can compose them up into the larger routing tree… I had my metadata on defapi
, not on a context
inside it
right, so maybe defapi
should warn if unknown keys/options are passed through?
@kennethkalmer yeah, it should. There could be specs for api options.
specs ftw 🙂
I’m under huge time constraints this week, hence Sunday crunch, but I don’t mind taking a stab at it mid-July
now that I “fixed” it, it was quite a duh moment… took a bit of time though