Skip to content

Commit

Permalink
Add 403 mapping for group bans (#363)
Browse files Browse the repository at this point in the history
* Add 403 mapping for group bans

Fixes: #253

* fix formatting error

* Fix NoPermission.yaml name

* Update NoPermission.yaml

---------

Co-authored-by: Aries <[email protected]>
  • Loading branch information
C0D3-M4513R and ariesclark authored Jul 22, 2024
1 parent 0dfe4a6 commit a3ca50e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openapi/components/paths/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ paths:
$ref: ../responses/groups/GroupMemberListResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
'403':
$ref: ../responses/NoPermission.yaml
'404':
$ref: ../responses/groups/GroupNotFoundError.yaml
security:
Expand Down
11 changes: 11 additions & 0 deletions openapi/components/responses/NoPermission.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: Error response due to missing permissions.
content:
application/json:
schema:
$ref: ../schemas/Error.yaml
examples:
No Permission Example:
value:
error:
message: You don't have permission․
status_code: 403

0 comments on commit a3ca50e

Please sign in to comment.