Skip to content

Syntax error when executing plantuml using default scheme #2

@paulboocock

Description

@paulboocock

When using the default scheme.j2, I get a syntax error as the plantuml preprocessor runs, whenever I have any references present in my dbml spec.

After a little debugging, and reading the plantuml docs, it looks like it should use a double colon :: rather than a single on the references.

https://github.com/foliant-docs/foliantcontrib.dbmldoc/blob/master/foliant/preprocessors/dbmldoc/template/scheme.j2#L22

Changing this to:

{{ table.name|indent }} --> {{ ref.table2.name }} :: {% for c in ref.col2 %}

removes the error and my uml diagram renders as I expect.

This also fails when following the instructions in the foliant docs: https://foliant-docs.github.io/docs/tutorials/db/dbml/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions