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
{{ message }}
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
Is your feature related to a problem? Please describe it.
In the Java implementation, each view class overrides checkElementCanBeAdded which is defined abstractly in View. Without having this, it is possible to add elements to a view that then would not be supported in Structurizr itself.
Describe the solution you would like.
Mirror the Java implementation with an abstract check_element_can_be_added method in View which each subtype overrides.
Additional context
fromstructurizrimportWorkspaceworkspace=Workspace(name="Test", description="Test")
system=workspace.model.add_software_system(name="System 1")
container=system.add_container(name="Container 1")
view=workspace.views.create_container_view(key="con1", description="test", software_system=system)
# This should fail but doesn'tview.add(system)
The text was updated successfully, but these errors were encountered:
yt-ms
added a commit
to yt-ms/structurizr-python
that referenced
this issue
May 11, 2021
Checklist
Is your feature related to a problem? Please describe it.
In the Java implementation, each view class overrides
checkElementCanBeAdded
which is defined abstractly inView
. Without having this, it is possible to add elements to a view that then would not be supported in Structurizr itself.Describe the solution you would like.
Mirror the Java implementation with an abstract
check_element_can_be_added
method inView
which each subtype overrides.Additional context
The text was updated successfully, but these errors were encountered: