Name: schema-viz
Owner: Metosin
Description: Plumatic Schema visualization using Graphviz.
Created: 2016-03-10 07:23:57.0
Updated: 2018-05-17 04:22:28.0
Pushed: 2016-12-01 07:08:33.0
Size: 703
Language: Clojure
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Plumatic Schema visualization using Graphviz.
Install Graphviz.
Public functions in schema-viz.core
:
visualize-schemas
displays schemas from a namespace in a window.save-schemas
saves schema visualization in a file.Both take an optional options-map to configure the rendering process. See docs for details.
uire '[schema-viz.core :as svc])
uire '[schema.core :as s])
efschema Country
name (s/enum :FI :PO)
neighbors [(s/recursive #'Country)]})
efschema Burger
name s/Str
s/optional-key :description) s/Str
origin (s/maybe Country)
price (s/constrained s/Int pos?)
/Keyword s/Any})
efschema OrderLine
burger Burger
amount s/Int})
efschema Order
lines [OrderLine]
delivery {:delivered s/Bool
:address {:street s/Str
:zip s/Int
:country Country}}})
/visualize-schemas)
Produces the following:
Copyright © 2015-2016 Metosin Oy
Distributed under the Eclipse Public License, the same as Clojure.