Commit f06878f6 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[auth] types for forgot password

parent a8332277
Pipeline #2824 failed with stage
in 9 minutes and 42 seconds
......@@ -106,4 +106,21 @@ instance Arbitrary AuthValid where
, u <- [1..3]
]
data PathId = PathNode NodeId | PathNodeNode ListId DocId
\ No newline at end of file
data PathId = PathNode NodeId | PathNodeNode ListId DocId
---------------------------
type Email = String
data ForgotPasswordRequest = ForgotPasswordRequest { _fpReq_email :: Email }
deriving (Generic )
$(deriveJSON (unPrefix "_fpReq_") ''ForgotPasswordRequest)
instance ToSchema ForgotPasswordRequest where
declareNamedSchema = genericDeclareNamedSchema (unPrefixSwagger "_fpReq_")
data ForgotPasswordResponse = ForgotPasswordRespones { _fpRes_status :: String }
deriving (Generic )
$(deriveJSON (unPrefix "_fpRes_") ''ForgotPasswordResponse)
instance ToSchema ForgotPasswordResponse where
declareNamedSchema = genericDeclareNamedSchema (unPrefixSwagger "_fpRes_")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment