joi-mongodb-objectid

JSON →
library 0.1.0 ·javascript
verified Jun 5, 2026

Joi extension to validate MongoDB ObjectId. Version 0.1.0 is stable, released in 2018, with no further updates. Provides a single `.objectId()` Joi type that validates BSON ObjectId instances. Depends on `joi >= 13` and `bson`. Minimal alternative to custom validators in Joi schemas for MongoDB applications.