Fork me on GitHub
#reitit
<
2021-03-11
>
Gleb Posobin14:03:39

Hi, is it possible to prevent unsuccessful coercions from throwing in reitit.frontend? https://github.com/metosin/reitit/issues/334

juhoteperi19:03:03

Not currently.

jmckitrick16:03:39

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.

juhoteperi18:03:51

It is possible with Spec and Schema also. I'll update the examples.

juhoteperi18:03:27

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

genRaiy16:03:05

@jmckitrick

(def Org-Ref
  [:map {:title "Organisation name"}
   [:ref {:swagger/description "Name of the organisation"
          :swagger/example     "Acme rentals, Houston TX"} Name]])

genRaiy16:03:35

^^^ using malli though

jmckitrick16:03:36

Ah, ok. I'd love to use malli, but that's not an option at the moment.