mongoose-to-swagger

JSON →
library 1.5.1 ·javascript
verified Jun 7, 2026

Converts Mongoose schema objects to Swagger/OpenAPI schema definitions. Currently at v1.5.1, stable and used in production for many projects. Key differentiator is the simplicity of converting any Mongoose model into a Swagger-compatible JSON schema, extracting description, enum, required fields automatically. Supports custom meta property whitelisting and omission of internal Mongoose fields. Does not support OpenAPI 3.0+ yet (Swagger 2.0 only). Released under MIT.