Skip to content

Commit 08aa00c

Browse files
committed
@sanderegg review: rename
1 parent 21537c3 commit 08aa00c

File tree

1 file changed

+5
-5
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+5
-5
lines changed

packages/models-library/src/models_library/api_schemas_webserver/groups.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GroupAccessRights(BaseModel):
5454
)
5555

5656

57-
class BasicGroupGet(OutputSchema):
57+
class GroupGetBase(OutputSchema):
5858
gid: Annotated[GroupID, Field(description="the group's unique ID")]
5959
label: Annotated[str, Field(description="the group's display name")]
6060
description: str
@@ -94,7 +94,7 @@ def dump_basic_group_data(cls, group: Group) -> dict:
9494
)
9595

9696

97-
class GroupGet(BasicGroupGet):
97+
class GroupGet(GroupGetBase):
9898
access_rights: Annotated[GroupAccessRights, Field(alias="accessRights")]
9999

100100
inclusion_rules: Annotated[
@@ -196,7 +196,7 @@ class MyGroupsGet(OutputSchema):
196196
all: GroupGet
197197
product: GroupGet | None = None
198198
support: Annotated[
199-
BasicGroupGet | None,
199+
GroupGetBase | None,
200200
Field(
201201
description="Group ID of the app support team or None if no support is defined for this product"
202202
),
@@ -271,8 +271,8 @@ def from_domain_model(
271271
else None
272272
),
273273
support=(
274-
BasicGroupGet.model_validate(
275-
BasicGroupGet.dump_basic_group_data(product_support_group)
274+
GroupGetBase.model_validate(
275+
GroupGetBase.dump_basic_group_data(product_support_group)
276276
)
277277
if product_support_group
278278
else None

0 commit comments

Comments
 (0)