This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-11
Channels
- # aleph (50)
- # announcements (20)
- # babashka (68)
- # beginners (70)
- # calva (25)
- # cider (1)
- # clj-kondo (10)
- # cljs-dev (3)
- # clojars (1)
- # clojure (113)
- # clojure-australia (7)
- # clojure-berlin (4)
- # clojure-europe (47)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-norway (1)
- # clojure-serbia (5)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (16)
- # community-development (2)
- # conjure (2)
- # cursive (15)
- # data-oriented-programming (35)
- # datahike (12)
- # datascript (5)
- # datomic (13)
- # duct (7)
- # fulcro (21)
- # graalvm (94)
- # graphql (1)
- # helix (4)
- # honeysql (19)
- # jackdaw (8)
- # jobs (2)
- # jobs-rus (1)
- # leiningen (1)
- # malli (32)
- # missionary (1)
- # mount (1)
- # off-topic (40)
- # perun (2)
- # portal (7)
- # reitit (10)
- # rewrite-clj (26)
- # shadow-cljs (90)
- # spacemacs (29)
- # sql (17)
- # tools-deps (49)
- # wasm (1)
- # xtdb (26)
Hi, is it possible to prevent unsuccessful coercions from throwing in reitit.frontend? https://github.com/metosin/reitit/issues/334
Not currently.
Is there a way to attach descriptions for swagger to the parameters in a request? I have a parameter name, value, parameter type, and data type. But I've not seen a description populated in any examples.
It is possible with Spec and Schema also. I'll update the examples.
For spec using spec-tools: https://github.com/metosin/spec-tools/blob/master/docs/04_json_schema.md#annotated-specs
This is how I think it should work, but didn't get Spec or Schema versions working on master now, will need to add tests and debug more later: https://github.com/metosin/reitit/pull/479
(def Org-Ref
[:map {:title "Organisation name"}
[:ref {:swagger/description "Name of the organisation"
:swagger/example "Acme rentals, Houston TX"} Name]])
Ah, ok. I'd love to use malli, but that's not an option at the moment.
It is possible with Spec and Schema also. I'll update the examples.
This is how I think it should work, but didn't get Spec or Schema versions working on master now, will need to add tests and debug more later: https://github.com/metosin/reitit/pull/479