This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-09
Channels
- # aleph (3)
- # beginners (327)
- # calva (3)
- # cider (20)
- # cljdoc (59)
- # cljs-dev (40)
- # clojure (104)
- # clojure-dev (30)
- # clojure-italy (8)
- # clojure-nl (36)
- # clojure-russia (3)
- # clojure-spec (3)
- # clojure-uk (79)
- # clojurescript (54)
- # community-development (5)
- # cursive (28)
- # data-science (21)
- # datomic (35)
- # emacs (14)
- # expound (1)
- # figwheel (2)
- # figwheel-main (82)
- # fulcro (18)
- # graphql (13)
- # jobs (12)
- # jobs-discuss (38)
- # kaocha (8)
- # lambdaisland (1)
- # lumo (12)
- # off-topic (20)
- # onyx (4)
- # re-frame (51)
- # reagent (12)
- # reitit (8)
- # ring-swagger (1)
- # shadow-cljs (22)
- # slack-help (2)
- # spacemacs (6)
- # specter (16)
- # testing (3)
Hi all - I'm using swagger from compojure-api, and am struggling with a few questions I seem not to find answers for in the docs:
1. I'm using specs like (def URL s/Str)
, and then (defschema Article {:url URL})
, and would like for them to show up in the generated API docs, e.g. the models. But there, I only get Article {url (string)}
. Is there a way to achieve something like Article {url (URL)} URL(string)
?
2. Is there a way to add a description at the top of a (context)
, so that it would show up before any route documentation? I would like to add information how to use the various routes in the context.
3. I have specs like (defschema Article {:name s/Str :description s/Str})
and then use a slightly modified version of it in a route, e.g. :body-params [article :- (-> Article (dissoc :description))]
or :return (-> Article (dissoc :description))
. The API honors this, checking param or return value correctly. But the swagger docs always show the full Article schema!?
Thanks.