i am playing around with the DSL and the diagram as a code 2.0 model.
I wonder why are names of components or components requires to be unique?
From what I can see, the names are used for display purposes.
The identifiers are mainly used for relations.
I've added some information about these rules to the language reference ... names need to be unique for things like the layout merging algorithm though.
Hey,
i am playing around with the DSL and the diagram as a code 2.0 model.
I wonder why are names of components or components requires to be unique? From what I can see, the names are used for display purposes. The identifiers are mainly used for relations.
Consider this example:
This throws an error:
When I change
rabbitmq2 = container "RabbitMQ" {}
torabbitmq2 = container "RabbitMQ other name" {}
it works as expected and produces this diagram:
Tested on https://structurizr.com/dsl
I was not able to find any docs about it. Do I miss them? I wonder what are the rationals behind this or if there is a use case that I miss.
Thanks for your feedback!