This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-25
Channels
- # aws (2)
- # aws-lambda (2)
- # beginners (95)
- # boot (47)
- # cider (13)
- # clara (5)
- # cljs-dev (36)
- # cljsjs (9)
- # clojure (51)
- # clojure-austin (1)
- # clojure-greece (25)
- # clojure-italy (4)
- # clojure-japan (10)
- # clojure-russia (13)
- # clojure-spec (61)
- # clojure-uk (25)
- # clojurescript (26)
- # core-matrix (5)
- # cursive (8)
- # data-science (7)
- # datomic (43)
- # dirac (2)
- # emacs (8)
- # events (3)
- # fulcro (17)
- # graphql (29)
- # jobs-rus (4)
- # lambdaisland (4)
- # lein-figwheel (3)
- # leiningen (60)
- # luminus (15)
- # lumo (8)
- # mount (3)
- # off-topic (28)
- # om (22)
- # onyx (115)
- # other-languages (6)
- # pedestal (5)
- # re-frame (41)
- # reagent (12)
- # ring-swagger (12)
- # shadow-cljs (127)
- # unrepl (27)
- # yada (5)
does anyone know of any documentation/samples for customizing the examples provided with the swagger ui
nvm i managed to find it
you can use ‘describe’ to add swagger metadata to a schema
@nickmbailey where did you find that? just curious
just browsing around in the examples directory
specifically i noticed using ‘describe’ here: https://github.com/metosin/compojure-api/blob/master/examples/thingie/src/examples/thingie.clj#L58
so i looked that up and saw it merged swagger metadata with a schema object
so tried it out by doing (describe MySchema “blah” :example “json_string”)
and voila
what’s actually really awesome is that describe just adds clojure metadata so you can just put it in your defschema