-
Notifications
You must be signed in to change notification settings - Fork 52
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
[Bug]: Cannot update non-string properties via REST API #235
Comments
Will take over and look into this issue |
As far as I can see, we will always go to private static IClass Transform(PropertyValue valueDTO)
{
return new Property(DataTypeDefXsd.String, idShort: valueDTO.idShort, value: valueDTO.value);
} Apparently, we use the |
@iosb-ina-mr as far as I can see it, the change itself runs trough correctly. What I do not understand yet is that I can change the name of the ID as well... But it currently looks like that the issue is not on the side of the change itself but starts much earlies when the AAS file is loaded |
@Freezor thank you for sharing your findings. That is indeed a strange behavior because the AAS is correctly displayed in the Blazor UI after having been loaded. |
@juileetikekar, are there any news on this issue (along with #236 and #237)? We need an API that works as expected. |
Contact Details
[email protected]
Describe the bug
Non-string properties of submodels cannot be updated via the following Patch call:
/shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value
The value type of the affected property changes to string but the value does not change.
To reproduce
Create a submodel with any property that is not a string (double, int, etc..) and try to update it with the Swagger UI.
Screenshots
No response
Expected Behaviour
Any property should update if the passed value is of the same type. Otherwise, an error should be returned. Furthermore, the value type should not change.
Version
Commit: 2c90a7a
Operating System
Linux
Relevant log output
No response
The text was updated successfully, but these errors were encountered: