malli

https://github.com/metosin/malli :malli:
raymcdermott 2021-03-16T18:01:39.000900Z

@ikitommi trying to get the graphviz example working with dorothy but it's all a string. What do you use to render it?

ikitommi 2021-03-16T18:12:37.001800Z

@raymcdermott try println

raymcdermott 2021-03-16T18:54:13.002500Z

I meant to a PNG or whatever ...

ikitommi 2021-03-16T19:39:55.004100Z

oh, thatโ€ฆ ๐Ÿ™‚ just dot from command line or the online version, e.g. https://sketchviz.com/

ikitommi 2021-03-16T19:40:45.005Z

love the sketches

ikitommi 2021-03-16T19:46:46.005600Z

but, with dorothy, this seems to work:

(require '[dorothy.core :as d])

(->> (md/transform Order) (d/show!))

raymcdermott 2021-03-16T20:26:06.006300Z

ok ... I was holding it wrong

raymcdermott 2021-03-16T21:23:25.006700Z

also m/walk ... thank you!!

raymcdermott 2021-03-16T22:11:01.006900Z

having said that

raymcdermott 2021-03-16T22:11:20.007400Z

how do I use it to drop or add in Swagger attributes?

raymcdermott 2021-03-16T22:12:06.008100Z

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

raymcdermott 2021-03-16T22:12:37.008600Z

I tried mu/update-properties but that only seems to operate at the top level

raymcdermott 2021-03-16T22:13:17.009Z

[ cos they clutter up the graphics ๐Ÿ™‚ ]