Skip to content

sdk/basyx/aas/adapter/xml/xml_serialization.py: lang_string_set_to_xml() called without tag parameter #397

Description

@moritzsommer

Currently, object_to_xml_element() calls lang_string_set_to_xml() without setting the tag parameter.

elif isinstance(obj, model.LangStringSet):
serialization_func = lang_string_set_to_xml

Unlike the other ..._to_xml() methods, it is not possible for lang_string_set_to_xml() to provide a default value for the tag parameter, as the tag is always different. Therefore, we should develop a method that can differentiate between all possible values of the tag parameter and set the correct one in lang_string_set_to_xml() if it is not specified (using param=None).

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions