Skip to content

model: Allow empty strings in SubmodelElement.value #242

@WelliSolutions

Description

@WelliSolutions

AAS before processing with Basyx: it has an empty manufacturer name:
image

AAS after processing with Basyx: the manufacturer name is gone:
image

So, basically the difference is between "" (empty string) and None (null).

IMHO, the cause is in line 219 of xml_deserialization.py

Proposed fix:

    if element is None:
        return None
    return element.text if element.text is not None else ""

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions