A MongoDB ObjectId validator for Joi
npm install joi-objectidA MongoDB ObjectId validator for Joi.

joi-objectid validates that the value is an alphanumeric string of 24 characters
in length.
It's used just like you'd use any other Joi type.
``js
const Joi = require('@hapi/joi')
Joi.objectId = require('joi-objectid')(Joi)
const schema = Joi.object({
id: Joi.objectId(),
name: Joi.string().max(100),
date: Joi.date()
})
`
``
npm install joi-objectid --save
#### running tests
- npm test`