Skip to content

Commit

Permalink
feat(validation): Show Capability as "SystemCapability"
Browse files Browse the repository at this point in the history
Analogous to the OperationCapability for OA, make it clear in the report
that Capability refers to those on the SA layer.
  • Loading branch information
Wuestengecko committed Sep 19, 2024
1 parent 1130356 commit 4aa30f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% set CATEGORIES = ["REQUIRED", "RECOMMENDED", "SUGGESTED"] -%}
{% set object_types = [
"Capability",
"SystemCapability",
"SystemActor",
"SystemComponent",
"SystemFunction",
Expand Down
5 changes: 5 additions & 0 deletions capellambse/extensions/validation/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
from ._validate import rule, virtual_type


@virtual_type(mm.sa.Capability)
def SystemCapability(_: mm.sa.Capability) -> bool:
return True


@virtual_type(mm.sa.SystemComponent)
def SystemActor(cmp: mm.sa.SystemComponent) -> bool:
return cmp.is_actor
Expand Down

0 comments on commit 4aa30f4

Please sign in to comment.