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 7a23414 commit 64a6e10Copy full SHA for 64a6e10
src/routes/milestones/update.js
@@ -22,9 +22,9 @@ const schema = {
22
name: Joi.string().max(255).optional(),
23
description: Joi.string().max(255),
24
duration: Joi.number().integer().min(1).optional(),
25
- startDate: Joi.any().forbidden(),
+ startDate: Joi.date().allow(null),
26
actualStartDate: Joi.date().allow(null),
27
- endDate: Joi.any().forbidden(),
+ endDate: Joi.date().min(Joi.ref('startDate')).allow(null),
28
completionDate: Joi.date().allow(null),
29
status: Joi.string().max(45).optional(),
30
type: Joi.string().max(45).optional(),
0 commit comments