Skip to content

Commit

Permalink
fix: accept manual input from project/validation type
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Pageot committed Oct 3, 2022
1 parent 9e564be commit 3f402c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/validations/projects.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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(),

Expand Down

0 comments on commit 3f402c2

Please sign in to comment.