Skip to content

Commit 7e344c7

Browse files
committed
Improve json serialization of AnnotatedRelationShipElement
1 parent f203bed commit 7e344c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sdk/basyx/aas/adapter/json/json_serialization.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,7 @@ def _annotated_relationship_element_to_json(cls, obj: model.AnnotatedRelationshi
578578
:param obj: object of class AnnotatedRelationshipElement
579579
:return: dict with the serialized attributes of this object
580580
"""
581-
data = cls._abstract_classes_to_json(obj)
582-
data.update({'first': obj.first, 'second': obj.second})
581+
data = cls._relationship_element_to_json(obj)
583582
if not cls.stripped and obj.annotation:
584583
data['annotations'] = list(obj.annotation)
585584
return data

0 commit comments

Comments
 (0)