This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-30
Channels
- # aws (1)
- # bangalore-clj (1)
- # beginners (73)
- # boot (13)
- # cider (3)
- # clara (19)
- # cljs-dev (33)
- # cljsrn (37)
- # clojure (177)
- # clojure-dev (13)
- # clojure-gamedev (1)
- # clojure-italy (10)
- # clojure-nlp (1)
- # clojure-russia (1)
- # clojure-spec (64)
- # clojure-uk (128)
- # clojurescript (177)
- # core-async (23)
- # cursive (5)
- # datascript (13)
- # datomic (20)
- # devops (49)
- # emacs (13)
- # graphql (5)
- # hoplon (13)
- # keechma (1)
- # leiningen (3)
- # liberator (4)
- # lumo (2)
- # off-topic (11)
- # om (19)
- # om-next (3)
- # onyx (6)
- # re-frame (13)
- # reagent (14)
- # ring-swagger (7)
- # rum (2)
- # spacemacs (7)
- # unrepl (1)
- # untangled (23)
- # vim (8)
- # yada (1)
there is also loose matching with regex on content-type in muuntaja: https://github.com/metosin/muuntaja/wiki/Configuration#loose-matching-on-content-type. The results are (fifo-)memoized against input, so about as fast as the the exact-matching like "application/json"
. I dislike regexs, but as current ring-json, ring-transit & ring-middleware-format have that, it’s supported in Muuntaja.
for the dynamic swagger generation - not easy with c-api. Libs like Kekkonen (https://github.com/metosin/kekkonen) create swagger-docs dynamically: routes are filtered away based on user privileges and one can partially apply parameters for request and get a “what do I still need” docs. But swagger-ui doesn’t really support that.
When the spec-things are finalized, there could be a spec-enabled api-docs ui for e2e cljs apps, while swagger would serve the non-cljs clients.
bit of an odd question that i do have a workaround for but curious , i’d like to put the swagger.json as generated from (swagger-routes) behind an api resource (behind liberator in fact to reuse shared auth / etc) , struggling to get this to work , have a liberator resource just returning (swagger-routes) , with no coercion , with my swagger items configured under top level (api {:swagger})