tv4-mongodb
About
Helper module for tv4 to validate against MongoDB ObjectId.
Install
$ npm install --save tv4 tv4-mongodb
Usage
const assert = ;const tv4 = ; const validator = tv4;validator; const schema = type: "string" format: "bson-objectid" ; ; // Valid ObjectId; // Invalid ObjectId