Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load models from a different folder #127

Open
hugojeanmaire1 opened this issue Sep 5, 2024 · 1 comment
Open

Load models from a different folder #127

hugojeanmaire1 opened this issue Sep 5, 2024 · 1 comment

Comments

@hugojeanmaire1
Copy link

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

Keep these by default:

  • Creates schemas automatically based on app/Models/*
  • Creates schemas automatically based on app/Interfaces/*
  • Creates schemas automatically based on app/Validators/* (only for adonisJS v6)

And add something like:

  • Creates schemas automatically based on a given path and checks subfolders
@ad-on-is
Copy link
Owner

ad-on-is commented Sep 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants