joi-oid
Joi validator with Mongo ObjectId.
Installation
npm i -s joi-oid
or
npm install joi-oid --save
use
joi-oid
verifies whether the value is suitable for the Mongo ObjectId type.
It is used like Joi
instead of Joi
. 🤔
const Joi = const schema = Joiobject id: Joi name: Joi age: Joi
License
MIT 🥰🤑