joi-objectid
JSON →A Joi extension for validating MongoDB ObjectId strings. Version 4.0.2 works with Joi v17+ (Hapi ecosystem). Validates that a value is a 24-character hex string. Lightweight, zero extra dependencies beyond Joi. Not needed for mongoose schemas but useful for plain Joi validation.
Resources
packagejoi-objectid ↗