We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd0b485 commit 6a82e77Copy full SHA for 6a82e77
src/services/ProcessorServiceAttachment.js
@@ -41,7 +41,7 @@ function createSchema () {
41
return updateSchema().keys({
42
category: Joi.string().optional().allow(null).allow(''),
43
size: Joi.number().optional().allow(null),
44
- contentType: Joi.string().when('type', { is: constants.ATTACHMENT_TYPES.FILE, then: Joi.string().required() }),
+ contentType: Joi.string().optional().allow(null).when('type', { is: constants.ATTACHMENT_TYPES.FILE, then: Joi.string().required() }),
45
path: Joi.string().required(),
46
type: Joi.string().valid(_.values(constants.ATTACHMENT_TYPES)),
47
tags: Joi.array().items(Joi.string()).optional().allow(null)
0 commit comments