eclipse-basyx / basyx-java-server-sdk

MIT License
55 stars 45 forks source link

Fixes 'same Submodel Reference can be applied to same AAS again without throwing 409' #388

Closed FriedJannik closed 1 month ago

FriedJannik commented 1 month ago

Description of Changes

Adding an existing submodel reference now results in a 409 Conflict instead of a 201 Created. An exception has been added for this (CollidingSubmodelReferenceException). In addition, there is a new exception for the case where the KeyType is missing, as KeyType is required by spec. (see Metamodel p. 84 -> card. = 1)

Related Issue

Closes #373

BaSyx Configuration for Testing

--

AAS Files Used for Testing

--

Additional Information

--