metosin/malli

PlantUML doesn't support keyword schemas

Aperta

#916 aperta il 5 lug 2023

 (2 commenti) (0 reazioni) (1 assegnatario)Clojure (237 fork)batch import
bughelp wanted

Metriche repository

Star
 (1724 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I changed the Address example so that Burger is a keyword, the generated plant uml gives an error when rendering.

(def Address [:schema {:registry {"Country" [:map [:name [:enum :FI :PO]] [:neighbors [:vector [:ref "Country"]]]] :Burger [:map [:name string?] [:description {:optional true} string?] [:origin [:maybe "Country"]] [:price pos-int?]] "OrderLine" [:map [:burger :Burger] [:amount int?]] "Order" [:map [:lines [:vector "OrderLine"]] [:delivery [:map [:delivered boolean?] [:address [:map [:street string?] [:zip int?] [:country "Country"]]]]]]}}

Guida contributor