Skip to content

Commit 1e19279

Browse files
committed
Minor schema tweaks
1 parent 5e44df2 commit 1e19279

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

workers/api.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5371,15 +5371,17 @@ const init = async () => {
53715371
.allow(false, null)
53725372
.example('AAAAAQAACnAcde')
53735373
.description(
5374-
'Reference an existing attachment ID instead of providing attachment content. If set, then `content` option is not allowed. Otherwise `content` is required.'
5374+
'References an existing attachment by its ID instead of providing new attachment content. If this field is set, the `content` field must not be included. If not set, the `content` field is required.'
53755375
)
53765376
}).label('UploadAttachment')
53775377
)
53785378
.description('List of attachments')
53795379
.label('UploadAttachmentList'),
53805380

53815381
messageId: Joi.string().max(996).example('<test123@example.com>').description('Message ID'),
5382-
headers: Joi.object().label('CustomHeaders').description('Custom Headers').unknown(),
5382+
headers: Joi.object().label('CustomHeaders').description('Custom Headers').unknown().example({
5383+
'X-My-Custom-Header': 'Custom header value'
5384+
}),
53835385

53845386
trackingEnabled: Joi.boolean()
53855387
.example(false)

0 commit comments

Comments
 (0)