Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [basyx-dev] JSON Array in submodel ignores the array and only returns the last set for idshort

Thank you Frank, I have question regarding array.

Could you please let know, how to achieve array where one Id can have multiple values?

Regards,
Adwait

On Fri, Nov 19, 2021, 2:48 PM <Frank.Schnicke@xxxxxxxxxxxxxxxxxx> wrote:

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,

 

Good Day!

 

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.

 

Best Regards,

Adwait

_______________________________________________
basyx-dev mailing list
basyx-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/basyx-dev

Back to the top