Skip to content

Commit 765c46c

Browse files
authored
fix(docs-attachments): ZMS-251 add missing fields in the response schema of attachments when fetching messages (#846)
1 parent 95bc33c commit 765c46c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/api/messages.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
389389
.description(
390390
'Was this attachment found from a multipart/related node. This usually means that this is an embedded image'
391391
),
392-
sizeKb: Joi.number().required().description('Approximate size of the attachment in kilobytes')
392+
sizeKb: Joi.number().required().description('Approximate size of the attachment in kilobytes'),
393+
size: Joi.number().required().description('Attachment filesize in bytes')
393394
})
394395
)
395396
.description('Attachments for the message'),
@@ -1090,7 +1091,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
10901091
.description(
10911092
'Was this attachment found from a multipart/related node. This usually means that this is an embedded image'
10921093
),
1093-
sizeKb: Joi.number().required().description('Approximate size of the attachment in kilobytes')
1094+
sizeKb: Joi.number().required().description('Approximate size of the attachment in kilobytes'),
1095+
size: Joi.number().required().description('Attachment filesize in bytes')
10941096
})
10951097
)
10961098
.description('Attachments for the message'),

0 commit comments

Comments
 (0)