Fix openapi docs spelling errors (#694)

This commit is contained in:
Louis Laureys 2024-06-02 10:25:59 +02:00 committed by GitHub
parent 753997fac7
commit 3c8e2d97a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -255,7 +255,7 @@ module.exports = (db, server) => {
pathParams: {
user: userId
},
reponse: { 200: { description: 'Success', model: Joi.object({ success: successRes }) } }
response: { 200: { description: 'Success', model: Joi.object({ success: successRes }) } }
}
},
tools.responseWrapper(async (req, res) => {

View file

@ -30,7 +30,7 @@ module.exports = (db, server) => {
},
response: {
200: {
descrition: 'Success',
description: 'Success',
model: Joi.object({
success: successRes,
total: totalRes,

View file

@ -628,9 +628,8 @@ module.exports = (db, server, mailboxHandler) => {
summary: 'Delete a Mailbox',
tags: ['Mailboxes'],
validationObjs: {
requestBody: { user: userId, mailbox: mailboxId },
pathParams: { user: userId, mailbox: mailboxId },
queryParams: { sess: sessSchema, ip: sessIPSchema },
pathParams: {},
response: {
200: {
description: 'Success',

View file

@ -763,7 +763,7 @@ module.exports = (db, server, userHandler, settingsHandler) => {
pathParams: {
user: userId
},
repsonse: {
response: {
200: {
description: 'Success',
model: Joi.object({