From daa6316c58877294613a94a01f80bfb3ee60ce0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Wed, 23 Aug 2023 19:30:29 +0200 Subject: [PATCH] model.base: change type of `SpecificAssetId.value` to `Identifier` --- basyx/aas/model/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/basyx/aas/model/base.py b/basyx/aas/model/base.py index 9dedc6e91..9ebe425c4 100644 --- a/basyx/aas/model/base.py +++ b/basyx/aas/model/base.py @@ -2006,7 +2006,7 @@ class SpecificAssetId(HasSemantics): def __init__(self, name: LabelType, - value: str, + value: Identifier, external_subject_id: GlobalReference, semantic_id: Optional[Reference] = None, supplemental_semantic_id: Iterable[Reference] = ()): @@ -2014,8 +2014,9 @@ def __init__(self, if value == "": raise ValueError("value is not allowed to be an empty string") _string_constraints.check_label_type(name) + _string_constraints.check_identifier(value) self.name: LabelType - self.value: str + self.value: Identifier self.external_subject_id: GlobalReference super().__setattr__('name', name)