Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

FriedJannik
Copy link
Member

@FriedJannik FriedJannik commented Aug 7, 2024

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

--


Copy link
Member

@aaronzi aaronzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the license headers to 2024

@aaronzi aaronzi merged commit 625c98b into eclipse-basyx:main Aug 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] same Submodel Reference can be applied to same AAS again without throwing 409 (already exists)
2 participants