Skip to content

Commit

Permalink
Fixes group permissions enum arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jan 21, 2025
1 parent 15cbbb9 commit a6d0e5c
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 59 deletions.
6 changes: 3 additions & 3 deletions openapi/components/requests/CreateGroupRoleRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ properties:
type: boolean
default: false
permissions:
$ref: ../schemas/GroupPermissions.yaml


type: array
items:
$ref: ../schemas/GroupPermissions.yaml
4 changes: 3 additions & 1 deletion openapi/components/requests/UpdateGroupRoleRequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ properties:
type: boolean
default: false
permissions:
$ref: ../schemas/GroupPermissions.yaml
type: array
items:
$ref: ../schemas/GroupPermissions.yaml
order:
type: integer
4 changes: 3 additions & 1 deletion openapi/components/schemas/GroupMyMember.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ properties:
items:
type: string
permissions:
$ref: ./GroupPermissions.yaml
type: array
items:
$ref: ./GroupPermissions.yaml
105 changes: 52 additions & 53 deletions openapi/components/schemas/GroupPermissions.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,52 @@
type: array
items:
type: string
enum:
- \*
- group-announcement-manage
- group-audit-view
- group-bans-manage
- group-data-manage
- group-default-role-manage
- group-galleries-manage
- group-instance-age-gated-create
- group-instance-join
- group-instance-manage
- group-instance-moderate
- group-instance-open-create
- group-instance-plus-create
- group-instance-plus-portal
- group-instance-plus-portal-unlocked
- group-instance-public-create
- group-instance-queue-priority
- group-instance-restricted-create
- group-invites-manage
- group-members-manage
- group-members-remove
- group-members-viewall
- group-roles-assign
- group-roles-manage
x-enum-varnames:
- group_all
- group_announcement_manage
- group_audit_view
- group_bans_manage
- group_data_manage
- group_default_role_manage
- group_galleries_manage
- group_instance_age_gated_create
- group_instance_join
- group_instance_manage
- group_instance_moderate
- group_instance_open_create
- group_instance_plus_create
- group_instance_plus_portal
- group_instance_plus_portal_unlocked
- group_instance_public_create
- group_instance_queue_priority
- group_instance_restricted_create
- group_invites_manage
- group_members_manage
- group_members_remove
- group_members_viewall
- group_roles_assign
- group_roles_manage
title: GroupPermissions
type: string
enum:
- \*
- group-announcement-manage
- group-audit-view
- group-bans-manage
- group-data-manage
- group-default-role-manage
- group-galleries-manage
- group-instance-age-gated-create
- group-instance-join
- group-instance-manage
- group-instance-moderate
- group-instance-open-create
- group-instance-plus-create
- group-instance-plus-portal
- group-instance-plus-portal-unlocked
- group-instance-public-create
- group-instance-queue-priority
- group-instance-restricted-create
- group-invites-manage
- group-members-manage
- group-members-remove
- group-members-viewall
- group-roles-assign
- group-roles-manage
x-enum-varnames:
- group_all
- group_announcement_manage
- group_audit_view
- group_bans_manage
- group_data_manage
- group_default_role_manage
- group_galleries_manage
- group_instance_age_gated_create
- group_instance_join
- group_instance_manage
- group_instance_moderate
- group_instance_open_create
- group_instance_plus_create
- group_instance_plus_portal
- group_instance_plus_portal_unlocked
- group_instance_public_create
- group_instance_queue_priority
- group_instance_restricted_create
- group_invites_manage
- group_members_manage
- group_members_remove
- group_members_viewall
- group_roles_assign
- group_roles_manage
4 changes: 3 additions & 1 deletion openapi/components/schemas/GroupRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ properties:
type: boolean
default: false
permissions:
$ref: ./GroupPermissions.yaml
type: array
items:
$ref: ./GroupPermissions.yaml
isManagementRole:
type: boolean
default: false
Expand Down

0 comments on commit a6d0e5c

Please sign in to comment.