Fork me on GitHub
#malli
<
2021-03-16
>
genRaiy18:03:39

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

genRaiy18:03:13

I meant to a PNG or whatever ...

ikitommi19:03:55

oh, that… 🙂 just dot from command line or the online version, e.g. https://sketchviz.com/

ikitommi19:03:45

love the sketches

ikitommi19:03:46

but, with dorothy, this seems to work:

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

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

genRaiy20:03:06

ok ... I was holding it wrong

genRaiy21:03:25

also m/walk ... thank you!!

genRaiy22:03:01

having said that

genRaiy22:03:20

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

genRaiy22:03:06

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

genRaiy22:03:37

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

genRaiy22:03:17

[ cos they clutter up the graphics 🙂 ]