Nostalgic Pizza Manager

    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()
    })

    Keywords

    Install

    npm i joi-object-id-extention

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.76 kB

    Total Files

    5

    Last publish

    Collaborators

    • shubhamzanwar