Skip to content

Commit

Permalink
removed old swagger models
Browse files Browse the repository at this point in the history
  • Loading branch information
battermann committed Sep 19, 2022
1 parent 9dbf509 commit 903a1a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion libs/wire-api/src/Wire/API/Swagger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ models =
User.Client.Prekey.modelPrekey,
User.Handle.modelUserHandleInfo,
User.Handle.modelCheckHandles,
User.Password.modelNewPasswordReset,
User.Password.modelCompletePasswordReset,
User.Profile.modelAsset,
User.RichInfo.modelRichInfo,
Expand Down
11 changes: 0 additions & 11 deletions libs/wire-api/src/Wire/API/User/Password.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ module Wire.API.User.Password
PasswordReset (..),

-- * Swagger
modelNewPasswordReset,
modelCompletePasswordReset,
)
where
Expand Down Expand Up @@ -58,16 +57,6 @@ newtype NewPasswordReset = NewPasswordReset (Either Email Phone)
deriving newtype (Arbitrary)
deriving (ToJSON, FromJSON, S.ToSchema) via Schema.Schema NewPasswordReset

modelNewPasswordReset :: Doc.Model
modelNewPasswordReset = Doc.defineModel "NewPasswordReset" $ do
Doc.description "Data to initiate a password reset"
Doc.property "email" Doc.string' $ do
Doc.description "Email"
Doc.optional
Doc.property "phone" Doc.string' $ do
Doc.description "Phone"
Doc.optional

instance Schema.ToSchema NewPasswordReset where
schema =
Schema.objectWithDocModifier "NewPasswordReset" objectDesc $
Expand Down

0 comments on commit 903a1a0

Please sign in to comment.