Skip to content

model.base: MultiLanguageNameType limits values to 64 instead of 128 #576

@thammel

Description

@thammel

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 MultiLanguageNameType should be
    allowed up to 128 characters. In the AAS Part 1 Metamodel, the values of
    MultiLanguageNameType are of type LangStringNameType, whose text
    property has a maximum length of 128 characters (identical to NameType).
    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 uses check_short_name_type (max length 64) instead of
    check_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsdkSomething to do with the `sdk` package

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions