Skip to content

Commit

Permalink
added errors to swagger docs (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
battermann authored Feb 10, 2022
1 parent e21ffa5 commit 9761a10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/wire-api/src/Wire/API/ErrorDescription.hs
Original file line number Diff line number Diff line change
Expand Up @@ -370,3 +370,5 @@ type BroadcastLimitExceeded =
400
"too-many-users-to-broadcast"
"Too many users to fan out the broadcast event to."

type InvalidAction = ErrorDescription 403 "invalid-actions" "The specified actions are invalid."
9 changes: 9 additions & 0 deletions libs/wire-api/src/Wire/API/Routes/Public/Galley.hs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,15 @@ type ConversationAPI =
:<|> Named
"add-members-to-conversation"
( Summary "Add qualified members to an existing conversation."
:> CanThrow ConvNotFound
:> CanThrow ActionDenied
:> CanThrow (InvalidOp "Invalid operation")
:> CanThrow InvalidAction
:> CanThrow TooManyMembers
:> CanThrow ConvAccessDenied
:> CanThrow NotATeamMember
:> CanThrow NotConnected
:> CanThrow MissingLegalholdConsent
:> ZLocalUser
:> ZConn
:> "conversations"
Expand Down

0 comments on commit 9761a10

Please sign in to comment.