Skip to content

Commit 38d00e7

Browse files
author
Vikas Agarwal
committed
Allowing null and empty values for description of an attachment
1 parent e3ff91c commit 38d00e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projects/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const createProjectValdiations = {
6969
attachments: Joi.array().items(Joi.object().keys({
7070
category: Joi.string().required(),
7171
contentType: Joi.string().required(),
72-
description: Joi.string().optional(),
72+
description: Joi.string().allow(null).allow('').optional(),
7373
filePath: Joi.string().required(),
7474
size: Joi.number().required(),
7575
title: Joi.string().required(),

0 commit comments

Comments
 (0)