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: { pathParams: {
user: userId 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) => { tools.responseWrapper(async (req, res) => {

View file

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

View file

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

View file

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