Describe the bug
Updating submodels via ValueOnly JSON documents with the PATCH verb fails with "Bad Request: Failed to read request". The endpoint accepts a list of SubmodelElements in JSON schema representation instead.
To Reproduce
Run eclipsebasyx/aas-environment container with --env _JAVA_OPTIONS=-Dlogging.level.org.springframework=TRACE
Describe the bug Updating submodels via ValueOnly JSON documents with the PATCH verb fails with "Bad Request: Failed to read request". The endpoint accepts a list of SubmodelElements in JSON schema representation instead.
To Reproduce
eclipsebasyx/aas-environment
container with--env _JAVA_OPTIONS=-Dlogging.level.org.springframework=TRACE
/submodels
resource from the submodel JSON. The newly created resource will be available under/submodels/dGVzdA==
:data.json
file and reupload it:Result:
Result:
Expected behavior The PATCH operation with ValueOnly data should be processed correctly and update the stored submodel.
BaSyx:
Docker images:
eclipsebasyx/aas-environment:2.0.0-milestone-04
andeclipsebasyx/aas-environment:2.0.0-SNAPSHOT
Used Asset Administration files (.aasx/.json/.xml) See examples above.
System (please complete the following information):