Skip to content

About

Graphviz diagram rendering for lutaml models (lutaml/lutaml#230)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lutaml-graphviz

Graphviz diagram rendering for LutaML (LML) models. ruby-graphviz and the dot toolchain live in this gem only; the lutaml core never depends on them.

require "lutaml/graphviz"

doc = Lutaml::Lml.parse(File.read("model.lml"))
svg = Lutaml::Formatter::Graphviz.new.tap { |f| f.type = :svg }.format(doc)

Requiring lutaml/graphviz registers the graphviz formatter in Lutaml::Formatter (model-driven registry), which lutaml lml generate discovers.

Output parity with the former in-gem converter (lutaml-lml ⇐ 0.3.6) is pinned by the golden .dot fixtures in spec/fixtures/generated_dot/.

About

Graphviz diagram rendering for lutaml models (lutaml/lutaml#230)

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages