How to use the objectId function from joi
Find comprehensive JavaScript joi.objectId code examples handpicked from public code repositorys.
175 176 177 178 179 180 181 182 183 184
auth: null, description: 'Update a user\'s password.', tags: ['api', 'User', 'Password'], validate: { params: { _id: Joi.objectId().required() }, payload: { password: Joi.string().required() .description('The user\'s new password')
152
0
40
+ 3 other calls in file
joi.string is the most popular function in joi (40578 examples)