eclipse-basyx / basyx-java-server-sdk

MIT License
55 stars 45 forks source link

Registry: ObjectMapperTest Failing #319

Closed oalagtash closed 2 months ago

oalagtash commented 3 months ago

Hey, we are having problems with publishing descriptors to the registry. The objectMapper in org.eclipse.digitaltwin.basyx.aasregistry.client.api.RegistryAndDiscoveryInterfaceApi used to post a descriptor to the registry is mapping empty lists to an empty array instead of excluding them, as the deserializer would expect, resulting in BAD_REQUEST.

I have written this test to further clarify the problem we are facing. So, it is not actually a fix but rather a proof 🙂

oalagtash commented 3 months ago

The test seems to run successfully. Looks like it already has been fixed. :) I'll need to rebase our fork. The test is helpful for the future, so I'll keep this PR open for merge.