I've built a express.js project with a mongoDB backend using mongoose. Since I've created the mongoose models via mongoose schemas, I was wondering if it is possible to reference to the mongoose schema definition instead of re-typing all it's contents.
I'm currently using swagger-jsdoc.
Thanks and best regards
[/EDIT] I understand, that mongoose-to-swagger basically performs this task. However, I have no clue how I can reference to such a generated swagger schema within my swagger-jsdoc code comments.