Skip to content

Commit

Permalink
Fix openapi docs spelling errors (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lau authored Jun 2, 2024
1 parent 753997f commit 3c8e2d9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api/openapidocs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/api/autoreply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/api/domainaliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = (db, server) => {
},
response: {
200: {
descrition: 'Success',
description: 'Success',
model: Joi.object({
success: successRes,
total: totalRes,
Expand Down
3 changes: 1 addition & 2 deletions lib/api/mailboxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion lib/api/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ module.exports = (db, server, userHandler, settingsHandler) => {
pathParams: {
user: userId
},
repsonse: {
response: {
200: {
description: 'Success',
model: Joi.object({
Expand Down

0 comments on commit 3c8e2d9

Please sign in to comment.