You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by beffge January 12, 2024
Hi Simon,
I recognised something about the implied relationships I would have expected differently. But maybe it's me and it works as intended 😇
I created the following landscape.dsl file (based on some of your examples):
workspace {
model {
u = person "User"
s = softwareSystem "Software System" {
webapp = container "Web Application" {
c1 = component "Component 1"
c2 = component "Component 2"
}
database = container "Database"
}
u -> c1 "Uses"
c1 -> c2 "Uses"
c2 -> database "Reads from and writes to"
}
views {
component webapp "landscape-webapp" {
include *
autoLayout lr
}
}
}
and extended it via the following workspace.dsl:
workspace extends landscape.dsl {
model {
!ref s {
c3 = container "Backend"
c2 -> c3 "Reads from"
}
}
views {
container s "extended-container" {
include *
autoLayout lr
}
component webapp "extended-webapp" {
include *
autoLayout lr
}
}
}
If done, then like expected the default for !impliedRelationships is taken i.e. true and on the view with the key extended-container I can see the relationship between the WebApp and the Backend.
Now if I use the cli and convert the DSL to JSON docker run -it --rm -v $PWD:/usr/local/structurizr structurizr/cli export -workspace landscape.dsl -format json and change the extend from *.dsl to *.json, the relationship is missng.
I have to add explicitly !impliedRelationships true to the workspace.dsl to make it appear again.
Therefore the question: Is this intended like this?
The text was updated successfully, but these errors were encountered:
Discussed in #232
Originally posted by beffge January 12, 2024
Hi Simon,
I recognised something about the implied relationships I would have expected differently. But maybe it's me and it works as intended 😇
I created the following
landscape.dsl
file (based on some of your examples):and extended it via the following
workspace.dsl
:If done, then like expected the default for
!impliedRelationships
is taken i.e.true
and on the view with the keyextended-container
I can see the relationship between theWebApp
and theBackend
.Now if I use the cli and convert the DSL to JSON
docker run -it --rm -v $PWD:/usr/local/structurizr structurizr/cli export -workspace landscape.dsl -format json
and change the extend from*.dsl
to*.json
, the relationship is missng.I have to add explicitly
!impliedRelationships true
to theworkspace.dsl
to make it appear again.Therefore the question: Is this intended like this?
The text was updated successfully, but these errors were encountered: