File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
Next Release
6
6
------------
7
7
* Fix: Don't duplicate relationships if ``add_nearest_neighbours() `` called twice (#63)
8
+ * Fix: Support blank diagrams descriptions from the Structurizr UI (#40)
8
9
9
10
0.3.0 (2020-11-29)
10
11
------------------
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class ViewIO(BaseModel, ABC):
42
42
"""
43
43
44
44
key : str
45
- description : str
45
+ description : str = ""
46
46
software_system_id : Optional [str ] = Field (default = None , alias = "softwareSystemId" )
47
47
paper_size : Optional [PaperSize ] = Field (default = None , alias = "paperSize" )
48
48
automatic_layout : Optional [AutomaticLayoutIO ] = Field (
Original file line number Diff line number Diff line change 15
15
16
16
"""Ensure the expected behaviour of View."""
17
17
18
- import pytest
19
-
20
18
from structurizr .model import Model
21
19
from structurizr .view .view import View , ViewIO
22
20
@@ -82,7 +80,6 @@ def test_adding_all_relationships():
82
80
assert rel2 in [vr .relationship for vr in view .relationship_views ]
83
81
84
82
85
- @pytest .mark .xfail (strict = True )
86
83
def test_missing_json_description_allowed ():
87
84
"""
88
85
Ensure that missing descriptions in the JSON form are supported.
@@ -98,4 +95,5 @@ def test_missing_json_description_allowed():
98
95
"key": "System1-SystemContext"
99
96
}
100
97
"""
101
- ViewIO .parse_raw (json ) # Fails as description is missing
98
+ io = ViewIO .parse_raw (json )
99
+ assert io is not None
You can’t perform that action at this time.
0 commit comments