ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
129 stars 41 forks source link

Load models from a different folder #127

Closed hugojeanmaire1 closed 3 weeks ago

hugojeanmaire1 commented 2 months ago

Hello, it would be nice to load models from a different folder. 😄

Keep these by default:

And add something like:

ad-on-is commented 2 months ago

In adonisv6 you can set custom folders for models, controllers, etc... in package.json which AutoSwagger respects.

If you mean adding additional folders (outside of the default ones), then may I ask why you'd want to do that? Since "convention over configuration" is usually the proper way to go with.

hugojeanmaire1 commented 1 month ago

I understand what you said, but I have a clean architecture in AdonisV6 and I want to use this package to expose my API with Swagger. So I want to expose for multiple bounded context in Swagger with these exemples: