Skip to content

Commit

Permalink
Increase max length of Identifier
Browse files Browse the repository at this point in the history
Previously, the maximal length of an `Identifier` string was `2000`.
Version 3.1 of the specification increases this to `2024`.
(as an easter-egg?)

This commit adapts this change.
  • Loading branch information
s-heppner committed Feb 21, 2024
1 parent 3f01c13 commit ed80270
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 @@ -1267,8 +1267,8 @@ class Blob_type(bytearray, DBC):


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

0 comments on commit ed80270

Please sign in to comment.