joi-objectid-extension

    1.0.1 • Public • Published

    joi-objectId-extension

    A MongoDB ObjectId validator for Joi.

    Usage

    const Joi = require('joi');
    const ObjectIdExtension = require('joi-objectid-extension');
     
    const joiWithObjectIdValidator =  Joi.extend(ObjectIdExtension);

    Keywords

    none

    Install

    npm i joi-objectid-extension

    DownloadsWeekly Downloads

    6

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.35 kB

    Total Files

    3

    Last publish

    Collaborators

    • yuri_d