Closed raphael closed 2 months ago
For reference here is the JSON produced by mdl
in the example above:
{
"name": "Example",
"description": "An example with a container view containing two systems",
"model": {
"softwareSystems": [
{
"id": "sudetj",
"name": "SystemA",
"description": "System A",
"tags": "Element,Software System",
"containers": [
{
"id": "1l2fgho",
"name": "ContainerA",
"description": "Container A",
"technology": "Does something",
"tags": "Element,Container",
"relationships": [
{
"id": "5rfsov",
"description": "Uses",
"tags": "Relationship",
"sourceId": "1l2fgho",
"destinationId": "vj0iw4",
"interactionStyle": "Undefined"
}
]
}
]
},
{
"id": "t4d0ii",
"name": "SystemB",
"description": "System B",
"tags": "Element,Software System",
"containers": [
{
"id": "vj0iw4",
"name": "ContainerB",
"description": "Container B",
"technology": "Does something",
"tags": "Element,Container",
"relationships": [
{
"id": "43dr89",
"description": "Uses",
"tags": "Relationship",
"sourceId": "vj0iw4",
"destinationId": "vt04l3",
"interactionStyle": "Undefined"
}
]
},
{
"id": "vt04l3",
"name": "ContainerC",
"description": "Container C",
"technology": "Does something",
"tags": "Element,Container"
}
]
}
]
},
"views": {
"containerViews": [
{
"key": "Container view",
"order": 0,
"elements": [
{
"id": "1l2fgho"
},
{
"id": "t4d0ii"
},
{
"id": "vj0iw4"
},
{
"id": "vt04l3"
}
],
"relationships": [
{
"id": "43dr89",
"description": "Uses"
},
{
"id": "5rfsov",
"description": "Uses"
}
],
"softwareSystemId": "sudetj"
}
]
}
}
Could be related to #648
When creating a container view that contains references to external systems mdl does not properly render the external system boundary. Instead it creates separate boxes for the system and its containers.
Example DSL:
Rendered diagram:
As comparison here is a similar situation in structurizr DSL:
And the diagram:
cc @dvictor