mongoose-array-validator

JSON →
library 1.0.3 ·javascript maintenance
verified Jun 7, 2026

Mongoose schema plugin that adds array validation constraints such as minItems, maxItems, and uniqueItems to your schemas. Version 1.0.3 is the latest and only stable release; no active development seen. Unlike manual validation in middleware, this plugin integrates directly into schema path options. Requires Mongoose as a peer dependency. Note that the plugin must be applied via schema.plugin().