Skip to content

Commit a497bb6

Browse files
committed
fix: tags always need to be a string
1 parent c5c089d commit a497bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structurizr/model/model_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def split_tags(cls, tags: Union[str, List[str]]) -> List[str]:
5555
def dict(self, **kwargs) -> dict:
5656
""""""
5757
obj = super().dict(**kwargs)
58-
if "tags" in obj and len(obj["tags"]) > 0:
58+
if "tags" in obj:
5959
obj["tags"] = ",".join(obj["tags"])
6060
return obj
6161

0 commit comments

Comments
 (0)