Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json to UML doesn't seem to work #38

Open
BalduinLandolt opened this issue Mar 16, 2021 · 3 comments
Open

json to UML doesn't seem to work #38

BalduinLandolt opened this issue Mar 16, 2021 · 3 comments

Comments

@BalduinLandolt
Copy link

I use PlantUML among other things to visualize json data, as described here. The preview in VS Code works just fine.

However, to get this into my project documentation, I want to turn the .puml into .svg and include it in markdown files.
For this I use node-plantuml, and it worked just fine with my class diagrams, calling puml generate -s api-example.puml -o api-example.svg.

However, with my json data, inside the .uml I have:

@startjson
{
  ...
}
@endjson

This should be valid, but in the output .svg I get no visualization, but rather the text No @startuml found.

@BalduinLandolt
Copy link
Author

@vowstar I noticed that node-plantuml-back supports this feature, but the result is still bugged. I think bumping the plantumlVersion to something a bit more recent would fix it.
(manually replacing the .jar with the latest from sourceforge fixed it for me, but that's a manual step I would like to avoid in my setup; especially if I want to generate all UMLs as SVGs in CI, that would obviously not work)

@vowstar
Copy link
Contributor

vowstar commented Mar 24, 2021

@vowstar I noticed that node-plantuml-back supports this feature, but the result is still bugged. I think bumping the plantumlVersion to something a bit more recent would fix it.
(manually replacing the .jar with the latest from sourceforge fixed it for me, but that's a manual step I would like to avoid in my setup; especially if I want to generate all UMLs as SVGs in CI, that would obviously not work)

Sure. After testing, the old version does not work, the latest version is no problem.

@ninfantr
Copy link

ninfantr commented Jul 6, 2023

can i use startjson with load json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants