My submodel repository contains a submodel with one property. I now try to patch the property using the value-only representation. The property representation could be a number, string or boolean value according to the OpenApi-Definition. The property value is of type integer, so I expect that I could post an integer value, but only posting a string value works.
Status Code is 500, so check out the error on server-side:
org.eclipse.digitaltwin.basyx.deserialization.exception.SubmodelElementValueDeserializationException: The provided SubmodelElementValue JSON is not as defined in the Dot AAS Part 2
at org.eclipse.digitaltwin.basyx.deserialization.factory.SubmodelElementValueDeserializationFactory.create(SubmodelElementValueDeserializationFactory.java:99) ~[basyx.submodelservice-core-2.0.0-milestone-03.1.jar!/:2.0.0-milestone-03.1]
at org.eclipse.digitaltwin.basyx.deserialization.SubmodelElementValueJsonDeserializer.deserialize(SubmodelElementValueJsonDeserializer.java:56) ~[basyx.submodelservice-core-2.0.0-milestone-03.1.jar!/:2.0.0-milestone-03.1]
at org.eclipse.digitaltwin.basyx.deserialization.SubmodelElementValueJsonDeserializer.deserialize(SubmodelElementValueJsonDeserializer.java:46) ~[basyx.submodelservice-core-2.0.0-milestone-03.1.jar!/:2.0.0-milestone-03.1]
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342) ~[jackson-databind-2.17.2.jar!/:2.17.2]
Expected behavior
Should work for integer as it does for string (Jackson deserialization problem)
BaSyx (please complete the following information):
BaSyx Version [ v2.0]
BaSyx SDK [Java]
AAS Version [ DotAAS V3]
System (please complete the following information):
Describe the bug
My submodel repository contains a submodel with one property. I now try to patch the property using the value-only representation. The property representation could be a number, string or boolean value according to the OpenApi-Definition. The property value is of type integer, so I expect that I could post an integer value, but only posting a string value works.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Should work for integer as it does for string (Jackson deserialization problem)
BaSyx (please complete the following information):
System (please complete the following information):