Skip to content

Commit

Permalink
V3.1: Adapt Value_type_IEC_61360 length to 2048
Browse files Browse the repository at this point in the history
Previously, the invariant declaring the maximum
length of `Value_type_IEC_61360` was set to
`2000`. Decided in [aas-specs#306] and specified
in [aas-specs-iec61360#21] this was adapted to
`2048`.

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

[aas-specs#306](admin-shell-io/aas-specs#306)
[aas-specs-iec61360#21](admin-shell-io/aas-specs-iec61360#21)
  • Loading branch information
s-heppner committed Oct 8, 2024
1 parent 9e7bb4a commit 739a2ef
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 @@ -1280,8 +1280,8 @@ class Identifier(Non_empty_XML_serializable_string, DBC):


@invariant(
lambda self: len(self) <= 2000,
"Value type IEC 61360 shall have a maximum length of 2000 characters.",
lambda self: len(self) <= 2048,
"Value type IEC 61360 shall have a maximum length of 2048 characters.",
)
class Value_type_IEC_61360(Non_empty_XML_serializable_string):
"""
Expand Down

0 comments on commit 739a2ef

Please sign in to comment.