Skip to content

Commit

Permalink
Remove constraint AASd-003
Browse files Browse the repository at this point in the history
Case-sensitive matching for idShorts is already implemented
  • Loading branch information
zrgt authored and s-heppner committed Sep 20, 2023
1 parent 18fde95 commit e8e664d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions basyx/aas/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,8 @@ class Referable(HasExtension, metaclass=abc.ABCMeta):
idShort is mandatory and used for referring to the element in its name space.
*Constraint AASd-002:* idShort shall only feature letters, digits, underscore ("_"); starting
mandatory with a letter.
*Constraint AASd-003:* idShort shall be matched case insensitive.
*Constraint AASd-004:* Add parent in case of non identifiable elements.
*Constraint AASd-022:* idShort of non-identifiable referables shall be unique in its namespace (case-sensitive)
:ivar _id_short: Identifying string of the element within its name space
:ivar ~.category: The category is a value that gives further meta information w.r.t. to the class of the element.
Expand Down Expand Up @@ -649,8 +649,7 @@ def _set_id_short(self, id_short: NameType):
Constraint AASd-002: idShort of Referables shall only feature letters, digits, underscore ("_"); starting
mandatory with a letter. I.e. [a-zA-Z][a-zA-Z0-9_]+
Constraint AASd-003: idShort shall be matched case-insensitive
Constraint AASd-022: idShort of non-identifiable referables shall be unique in its namespace
Constraint AASd-022: idShort of non-identifiable referables shall be unique in its namespace (case-sensitive)
:param id_short: Identifying string of the element within its name space
:raises ValueError: if the constraint is not fulfilled
Expand Down

0 comments on commit e8e664d

Please sign in to comment.