joi-object-id-extention

1.0.2 • Public • Published

Joi-object-id-extention

This super cool package is a JOI extension that enables you to verify objectIds (like mongo document ids)

Usage

const Joi = require('@hapi/joi');
const newJoi = require('joi-object-id-extention');
 
const schema = Joi.object({
    id: newJoi.string().objectid()
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i joi-object-id-extention

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.76 kB

Total Files

5

Last publish

Collaborators

  • shubhamzanwar