server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Updating non-string submodel properties with string values changes their value type using the REST API

Open iosb-ina-mr opened this issue 10 months ago • 0 comments

Contact Details

[email protected]

Describe the bug

Updating a non-string property with a string value changes the value type to string of the property with the following Patch call: /shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value

To reproduce

Create a submodel with any property that is not a string (double, int, etc..) and update it with the Swagger UI with a string value.

Screenshots

No response

Expected Behaviour

At least, an error should be returned that the value type is not matching. The server, however, could try to parse the string to the expected data type and give an error if that fails. This allows some flexibility.

Version

Commit: 2c90a7a

Operating System

Linux

Relevant log output

No response

iosb-ina-mr avatar Apr 11 '24 13:04 iosb-ina-mr