Skip to content

Commit

Permalink
feat: update validation for governance API response schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2sw committed Aug 9, 2022
1 parent 0de2b35 commit 5ddd18b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validations/governance.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const governancePickListSchema = Joi.object().keys({
ratingType: Joi.array().items(Joi.string()).min(1).required(),
unitType: Joi.array().items(Joi.string()).min(1).required(),
unitStatus: Joi.array().items(Joi.string()).min(1).required(),
verificationBody: Joi.array().items(Joi.string()).min(1).required(),
projectTags: Joi.array().items(Joi.string()).min(1).required(),
unitTags: Joi.array().items(Joi.string()).min(1).required(),
coBenefits: Joi.array().items(Joi.string()).min(1).required(),
correspondingAdjustmentDeclaration: Joi.array()
.items(Joi.string())
.min(1)
Expand Down

0 comments on commit 5ddd18b

Please sign in to comment.