This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-20
Channels
- # announcements (2)
- # architecture (5)
- # beginners (118)
- # cider (5)
- # clara (13)
- # cljdoc (8)
- # cljs-dev (49)
- # cljsjs (2)
- # clojure (107)
- # clojure-dev (9)
- # clojure-europe (3)
- # clojure-italy (58)
- # clojure-japan (2)
- # clojure-nl (6)
- # clojure-spec (89)
- # clojure-uk (27)
- # clojurescript (9)
- # core-async (33)
- # cursive (2)
- # datascript (2)
- # datomic (31)
- # duct (4)
- # emacs (1)
- # events (1)
- # figwheel-main (1)
- # fulcro (69)
- # hoplon (7)
- # hyperfiddle (16)
- # incanter (4)
- # instaparse (4)
- # kaocha (1)
- # mount (2)
- # nrepl (19)
- # off-topic (40)
- # onyx (6)
- # other-languages (3)
- # pedestal (2)
- # re-frame (48)
- # reagent (2)
- # reitit (10)
- # ring-swagger (9)
- # shadow-cljs (63)
- # spacemacs (13)
- # sql (8)
Bumping my version now. Went back to 26 before, because of https://github.com/metosin/compojure-api/issues/398
but for now I've got a short question: is there some way to get parameter descriptions in swagger-ui. Like how with schema-core you could do :query-params [foo :- (describe schema-core/Str "Description of foo")]
@nmdrenard wrap into st/spec
and add :description
to the data. All keys namespaces with json-schema
and swagger
will contribute also to docs.
See https://github.com/metosin/spec-tools/blob/master/README.md#generating-json-schemas
(swagger/transform
(st/spec
{:spec integer?
:name "integer"
:description "it's an int"
:swagger/default 42}))
; {:type "integer"
; :title "integer"
; :description "it's an int"
; :default 42}
👍 4