Skip to content

Commit

Permalink
Merge pull request #485 from ELEVATE-Project/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rakeshSgr authored Apr 5, 2024
2 parents 79f4986 + 5048552 commit aace795
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/validators/v1/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ module.exports = {
req.body = filterRequestBody(req.body, organization.requestOrgRole)
req.checkBody('role').notEmpty().withMessage('role field is empty')
req.checkBody('form_data').notEmpty().withMessage('form_data field is empty')
req.checkBody('form_data.about')
.optional()
.trim()
.notEmpty()
.withMessage('about field is empty')
.matches(/^[a-zA-Z0-9\-.,\s]+$/)
.withMessage('invalid about')
req.checkBody('form_data.experience')
.optional()
.trim()
.notEmpty()
.withMessage('form_data.experience field is empty')
.isNumeric()
.withMessage('invalid form_data.experience')
},

read: (req) => {
Expand Down

0 comments on commit aace795

Please sign in to comment.