From 3f402c26aa21c0fe2148236ad715defc0e74b5c9 Mon Sep 17 00:00:00 2001 From: Stanley Pageot Date: Mon, 3 Oct 2022 12:39:49 -0400 Subject: [PATCH] fix: accept manual input from project/validation type --- src/validations/projects.validations.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/validations/projects.validations.js b/src/validations/projects.validations.js index f6c19f2f..d1f21da1 100644 --- a/src/validations/projects.validations.js +++ b/src/validations/projects.validations.js @@ -25,9 +25,7 @@ export const baseSchema = { projectLink: Joi.string().required(), projectDeveloper: Joi.string().required(), sector: Joi.string().required(), - projectType: Joi.string() - .custom(pickListValidation('projectType')) - .required(), + projectType: Joi.string().required(), projectTags: Joi.string().optional(), coveredByNDC: Joi.string() .custom(pickListValidation('coveredByNDC')) @@ -40,9 +38,7 @@ export const baseSchema = { unitMetric: Joi.string().custom(pickListValidation('unitMetric')).required(), methodology: Joi.string().required(), methodology2: Joi.string().optional(), - validationBody: Joi.string() - .custom(pickListValidation('validationBody')) - .optional(), + validationBody: Joi.string().optional(), validationDate: Joi.date().optional(), description: Joi.string().optional(),