model.base: `MultiLanguageNameType` limits values to 64 instead of 128
MultiLanguageNameType constrains each of its values to a maximum length
of 64 characters by using check_short_name_type (ShortNameType).
-
Expected behavior: Each value of a
MultiLanguageNameTypeshould be allowed up to 128 characters. In the AAS Part 1 Metamodel, the values ofMultiLanguageNameTypeare of typeLangStringNameType, whosetextproperty has a maximum length of 128 characters (identical toNameType). This has been the case since Metamodel V3.0, and the SDK currently targets V3.1.2. -
Actual behavior: A value with a length between 65 and 128 characters is rejected with a
ValueError, e.g.:MultiLanguageNameType has a maximum length of 64! (length: 65). The SDK usescheck_short_name_type(max length 64) instead ofcheck_name_type(max length 128).
Suggested fix: have MultiLanguageNameType use check_name_type. The
check_short_name_type and constrain_short_name_type helpers become unused
and can be removed.
Reference: https://industrialdigitaltwin.io/aas-specifications/IDTA-01001/v3.1.2/index.html
I verfied, this is a bug in our SDK.