This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-18
Channels
- # adventofcode (26)
- # announcements (3)
- # babashka (12)
- # beginners (20)
- # biff (33)
- # cider (4)
- # clj-kondo (9)
- # cljdoc (17)
- # clojure (35)
- # clojure-art (6)
- # clojure-belgium (1)
- # clojure-denmark (1)
- # clojure-europe (1)
- # clojure-norway (25)
- # clojurescript (29)
- # conjure (19)
- # cryogen (1)
- # datomic (23)
- # honeysql (2)
- # java (3)
- # joyride (9)
- # lsp (24)
- # malli (3)
- # nbb (2)
- # off-topic (25)
- # pathom (2)
- # pedestal (8)
- # portal (1)
- # practicalli (7)
- # re-frame (1)
- # reitit (4)
- # releases (1)
- # shadow-cljs (14)
basic question: is there a mechanism for annotating/adding descriptions to basic schema types in a manner similar to annotating map keys?
Example use case: annotating tuple elements. I'd like to attach more information than just :string
alone. E.g. instead of:
[:tuple :uuid :string :string]
something like:
[:tuple {:type :uuid :description "The unique identifier for thing."} {:type :string :description "The thing's annotation."} {:type :string :description "The thing's title."}]
is there an obvious way to do this that I've just totally overlooked?Any schema can have properties, so: `[:tuple [:uuid {:description "..."}] [:string {...}] [:string {...}]]`
yeah I remembered the [:string {:description "..."}]
syntax not long after I posted this, thanks!
👍 1