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

V3.1: Make Entity.entity_type optional #311

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

s-heppner
Copy link
Collaborator

Previously, Entity.entity_type was mandatory, however v3.1 changes this.
We adapt the class defintion, as well as the invariant of AASd-014.

Fix #306

Previously, `Entity.entity_type` was mandatory, however v3.1
changes this.
We adapt the class defintion, as well as the invariant of AASd-014.

Fix #306
@s-heppner s-heppner added the V3.1 SpecAAS V3.1 label Feb 15, 2024
@s-heppner s-heppner added this to the V3.1 milestone Feb 15, 2024
),
"Constraint AASd-014: Either the attribute global asset ID or "
"specific asset ID must be set if entity type is set to self-managed entity. "
"They are not existing otherwise."
"specific asset ID must be set if Entity/entityType is set to :attr:`Entity_type.Self_managed_entity`."
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can someone please pay additional attention to my adaptation of the invariant? Does this do what it says it does?

@zrgt zrgt self-requested a review February 18, 2024 22:11
Copy link
Collaborator

@zrgt zrgt left a comment

Choose a reason for hiding this comment

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

LGTM

@s-heppner s-heppner merged commit ef05162 into V3.1/main Feb 19, 2024
2 checks passed
@s-heppner s-heppner deleted the V3.1/OptionalEntityType branch February 19, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V3.1 SpecAAS V3.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants