ad-on-is / adonis-autoswagger

Auto-Generate swagger docs for AdonisJS
MIT License
117 stars 38 forks source link

Load models from a different folder #127

Open hugojeanmaire1 opened 1 month ago

hugojeanmaire1 commented 1 month 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 1 month 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 6 days 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: