Dear Adwait,
your PUT Request Body is defective. You have multiple elements with the same IdShort (“Pinhole”) in the Submodel.
Additionally, you have multiple elements with the same IdShort (“Pin”) in the SubmodelElementCollections.
Since the IdShorts need to be unique in their respective scopes(e.g. Submodel, SubmodelElementCollection), you’re getting
not your expected result.
Best regards,
Frank
--
Frank Schnicke
Expert »Industrie 4.0 System Architectures«
Dept. Virtual Engineering
Fraunhofer IESE
Fraunhofer-Platz 1 | 67663 Kaiserslautern
+49 631 6800-2259
frank.schnicke@xxxxxxxxxxxxxxxxxx
www.iese.fraunhofer.de
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
25 Jahre Fraunhofer IESE – Engineering the Digital Future
Reisen Sie mit uns in die Vergangenheit, aber vor allem in die digitale Zukunft!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Von: basyx-dev <basyx-dev-bounces@xxxxxxxxxxx>
Im Auftrag von adwait churi
Gesendet: Mittwoch, 17. November 2021 12:28
An: basyx developer discussions <basyx-dev@xxxxxxxxxxx>
Betreff: [basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort
Hi Basyx community,
Is the array supported by AAS?
I checked adding the AllowDuplicates = true and with / without Ordered=true
After trying multiple options I found it doesn't work for arrays.
I checked posting over AKS ,where a submodel got created.
When performing Get, it reverted with a single set rather than array.
Attached herewith data files.