Skip to content

Commit

Permalink
V3.1: Adapt Identifier length to 2048
Browse files Browse the repository at this point in the history
Previously, the invariant declaring the maximum
length of `Identifier` was set to `2000`. We had
already adapted this to `2024` according to
[aas-specs#306], however the specification was
corrected to `2048` in [aas-specs#306].

We therefore adapt the invariant to a maximum
length of `2048`

[aas-specs#306](admin-shell-io/aas-specs#306)
  • Loading branch information
s-heppner committed Oct 8, 2024
1 parent f9cbdb3 commit 9e7bb4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aas_core_meta/v3_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,8 @@ class Blob_type(bytearray, DBC):


@invariant(
lambda self: len(self) <= 2024,
"Identifier shall have a maximum length of 2024 characters.",
lambda self: len(self) <= 2048,
"Identifier shall have a maximum length of 2048 characters.",
)
class Identifier(Non_empty_XML_serializable_string, DBC):
"""
Expand Down

0 comments on commit 9e7bb4a

Please sign in to comment.