Skip to content

rebase - #23

Merged
dk-emag merged 30 commits into
submodel-converterfrom
main
Mar 18, 2026
Merged

rebase#23
dk-emag merged 30 commits into
submodel-converterfrom
main

Conversation

@dk-emag

@dk-emag dk-emag commented Mar 18, 2026

Copy link
Copy Markdown

rebase

dk-emag and others added 30 commits September 5, 2025 13:30
Enhance the ElementValue class to include a condition
for handling boolean values. When the Value is a boolean,
it is converted to a lowercase string representation.
This improves the overall handling of different data types
alongside existing support for double and float.
Enhanced the ValueScopeConverter to check for boolean values when processing string tokens. If the expected data type is boolean, the string is parsed accordingly; otherwise, it defaults to returning the string value as an ElementValue.
The processing of values for Boolean properties has been corrected when these are provided as strings via the REST API. The return format for Boolean values via the REST API has been improved (upper- / lower-case).
Modified the WriteMetadata method to include a check for null or empty values for the IdShort property of ISubmodelElement. This change prevents writing an empty string for idShort in the JSON output. The properties kind, modelType, and category remain unchanged.
feat: add changelog generation and enhance release notes in CI workflow
Introduce a new `QualifiersConverter` class to handle the serialization and deserialization of `Qualifier` objects. Update `SubmodelElementConverter.cs` and `ValueScopeConverter.cs` to utilize this converter for `qualifiers` and `annotations`, enhancing the overall JSON output structure.
Improve qualifiers serialization
Updated SubmodelController to check for null values in fileElement.Value.Value. If null, fileName is assigned from file.FileName, enhancing code robustness and preventing potential null reference exceptions.
Handle null case for fileElement.Value.Value
- Updated variable declarations to use `var` for improved readability.
- Added logic to delete existing files associated with `fileElement` before uploading a new file to prevent conflicts.
- Changed file creation to use `await using` for better asynchronous performance.
Refactored the code to use `var` for variable declarations, enhancing readability. Added a line to reset `fileElement.Value.Value` to an empty string before returning an `Ok()` response, indicating a reset after processing.
Fix and improve attachment handling
Changed the server URL from `http://0.0.0.0:5088` to `http://+:5043` to allow listening on all network interfaces at port 5043.
Changed the assignment of `fileElement.Value.Value` in
`SubmodelController.cs` from an empty string (`string.Empty`)
to `null`. This improves clarity in representing the absence
of a value and enhances consistency in handling null values.
@dk-emag
dk-emag merged commit 419ed81 into submodel-converter Mar 18, 2026
14 checks passed
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.

1 participant