ring-swagger

niels 2018-11-20T08:29:43.105500Z

Bumping my version now. Went back to 26 before, because of https://github.com/metosin/compojure-api/issues/398

ikitommi 2018-11-20T09:05:46.106700Z

will try to investigate that this week

niels 2018-11-20T14:42:25.108200Z

will report back when I have time to test the custom printer

niels 2018-11-20T14:44:00.109500Z

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")]

ikitommi 2018-11-20T14:59:57.113Z

@nmdrenard wrap into st/spec and add :description to the data. All keys namespaces with json-schema and swagger will contribute also to docs.

ikitommi 2018-11-20T15:01:30.113400Z

(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}

👍 1
niels 2018-11-20T15:17:33.114800Z

"it's just data!" real nice. Thanks for the help again

niels 2018-11-20T15:15:20.114300Z

Works like a charm! Now to turn all my specs into data-specs...