Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basyx.adapter: Allow empty strings in XML deserialization for some attrs #339

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

zrgt
Copy link
Contributor

@zrgt zrgt commented Nov 21, 2024

  • Added _get_text_or_empty_string_or_none(), which returns an empty string if the text is None.
  • Used the new function for all attributes that can be empty strings. In particular, this affects all the attributes of one of XSD_TYPE_CLASSES type, as they can be strings including the empty string.

Fixes #242

- Added _get_text_or_empty_string_or_none(), which returns
an empty string if the text is None.
- Used the new function for all attributes that can be empty strings.
In particular, this affects all the attributes of one of XSD_TYPE_CLASSES
type, as they can be strings including the empty string.

Fixes eclipse-basyx#242
@s-heppner s-heppner merged commit d5e256f into eclipse-basyx:main Dec 10, 2024
8 checks passed
@s-heppner s-heppner deleted the allow_empty_strings branch December 10, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

model: Allow empty strings in SubmodelElement.value
2 participants