[BUG] SubmodelService: Exception Is Thrown When Resolving The Value-Only Representation Of A Submodel ( with Operation Elements not on toplevel + Capability elements) #460
Labels
bug
Something isn't working
Describe the bug
There is no ValueOnly representation for Operations and Capabilities. According to the IDTA definitions Page 98 these element should be ommited:
Operations and Capabilities are excluded from the output modifier’s scope since only data
containing elements are in the centre of focus. Consequently, in the serialization they are
omitted.
But an exception is thrown:
org.eclipse.digitaltwin.basyx.submodelservice.value.exception.ValueMapperNotFoundException: Value mapper not found for this submodel element TestOperation
To Reproduce
Steps to reproduce the behavior:
=> {
"timestamp": 1726560551837,
"status": 500,
"error": "Internal Server Error",
"path": "/submodel/$value"
}
In addition, I get the same error when calling
GET /submodel/submodel-elements/BaseOperations.TestOperation/$value
Expected behavior
The submodel should be returned in the value-only representation without operations or capabilities.
Perhaps, for a GET-Operation on /submodel/submodel-elements/BaseOperations.TestOperation/$value, we should rather return a 404, because there is no value-only representation of an operation.
BaSyx (please complete the following information):
System (please complete the following information):
The text was updated successfully, but these errors were encountered: