Skip to content

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
7 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