Answers for "joi object id validation"

2

joi object id validation

npm i joi-objectid

const Joi = require('joi');
Joi.objectId = require('joi-objectid')(Joi)

// now you can use Joi.objectId to validate the post request sent by user
Posted by: Guest on October-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language