This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-08
Channels
- # bangalore-clj (4)
- # beginners (88)
- # boot (12)
- # cljs-dev (10)
- # cljsjs (1)
- # clojure (284)
- # clojure-denmark (2)
- # clojure-dev (35)
- # clojure-italy (8)
- # clojure-russia (36)
- # clojure-spec (38)
- # clojure-uk (51)
- # clojurescript (145)
- # cursive (6)
- # data-science (1)
- # datomic (8)
- # duct (43)
- # emacs (9)
- # figwheel (2)
- # fulcro (29)
- # graphql (1)
- # immutant (3)
- # instaparse (1)
- # jobs (1)
- # jobs-discuss (1)
- # lumo (16)
- # off-topic (50)
- # onyx (90)
- # re-frame (6)
- # reagent (20)
- # remote-jobs (3)
- # ring-swagger (18)
- # schema (8)
- # shadow-cljs (141)
- # slack-help (3)
- # spacemacs (36)
- # unrepl (7)
- # vim (1)
- # yada (2)
I'm searching for a way to generate documentation out of my defined schema. Is there a good way to achieve this?
But I'm looking for a way to add some additional information to required- or optional-keys. Intended doc may look like:
(def ServerTestConfig {
(optional-key :netcat-test)
{Keyword {:reachable? Bool}}, ; keyword is used to match test against fact
(optional-key :netcat-fact) ; parsed result of "nc [host] -w [timeout] && echo $?"
{Keyword {:port Num,
:host Str, ; may be ip or fqdn
:timeout Num}}, ; timeout given in seconds
(optional-key :netstat-test)
You can add meta-data to maps, s/defschema
already adds :name
and :ns
. Same applies to all Schema Records.