Skip to content

Commit

Permalink
model.base: change type of SpecificAssetId.value to Identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs committed Aug 23, 2023
1 parent 493d5d3 commit daa6316
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2006,16 +2006,17 @@ 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] = ()):
super().__init__()
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)
Expand Down

0 comments on commit daa6316

Please sign in to comment.