From e8e664d8d1d6700d814abc9b908fae3168cd531a Mon Sep 17 00:00:00 2001 From: zrgt Date: Fri, 8 Sep 2023 19:14:44 +0200 Subject: [PATCH] Remove constraint AASd-003 Case-sensitive matching for idShorts is already implemented --- basyx/aas/model/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/basyx/aas/model/base.py b/basyx/aas/model/base.py index bfc2cacfa..bacd8b005 100644 --- a/basyx/aas/model/base.py +++ b/basyx/aas/model/base.py @@ -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. @@ -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