Skip to content

Commit

Permalink
Merge pull request #677 from Chia-Network/feat/governance-validation-…
Browse files Browse the repository at this point in the history
…update

feat: update validation for governance API response schema
  • Loading branch information
MichaelTaylor3D authored Aug 10, 2022
2 parents 919338f + 5ddd18b commit 54915bc
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 54915bc

Please sign in to comment.