Skip to content

Commit

Permalink
add missing response types
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed Dec 14, 2023
1 parent 793cb19 commit c8e05ac
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ module.exports = (db, server, userHandler, settingsHandler) => {
description: 'Success',
model: Joi.object({
success: successRes,
storageUsed: Joi.number().description('Calculated quota usage for the user').required()
storageUsed: Joi.number().description('Calculated quota usage for the user').required(),
previousStorageUsed: Joi.number().description('Previous storage used').required()
})
}
}
Expand Down Expand Up @@ -1738,7 +1739,7 @@ module.exports = (db, server, userHandler, settingsHandler) => {
response: {
200: {
description: 'Success',
model: Joi.object({ success: successRes })
model: Joi.object({ success: successRes, task: Joi.string().required().description('Task ID') })
}
}
}
Expand Down Expand Up @@ -2151,7 +2152,7 @@ module.exports = (db, server, userHandler, settingsHandler) => {
model: Joi.object({
success: successRes,
password: Joi.string().required().description('Temporary password'),
validAfter: Joi.date().empty('').description('The date the password is valid after')
validAfter: Joi.date().empty('').description('The date password is valid after')
})
}
}
Expand Down

0 comments on commit c8e05ac

Please sign in to comment.