Can a participant name have a hyphen?

0 votes
asked Feb 23, 2022 in Question / help by Tom

Hi.
Have tried this:

@startuml
participant OT as ot
participant core-ot as coreot
database Redis as Redis
ot -> coreot
@enduml

And this error is shown:
Error line 3 in file: test.puml
Some diagram description contains errors


Is there a way to get the hyphen in the name?
Best Regards.

1 Answer

0 votes
answered Feb 23, 2022 by The-Lu (64,760 points)

Hello T.,

Yes, put the participant on double quote, as:

@startuml
participant OT as ot
participant "core-ot" as coreot
database Redis as Redis
ot -> coreot
@enduml

If that can help,
Regards.

commented Feb 23, 2022 by Tom
Thank you very much!
...