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

feat: opt-in lazy loading of specs #833

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

FauxFaux
Copy link

Add a new option, lazyLoadApiSpecs, which causes Api Specs to be loaded on first use, instead of on startup.

In tests on our app, eagerly loading all of the possible sets of specs takes tens of seconds, and it is very annoying, so this would be very useful for testing.

Fixes #609.

This branch also currently contains some random changes that were necessary to get the tests to run properly on my machine, which I'm guessing you don't want. Also, please run prettier over the whole codebase.

@FauxFaux FauxFaux marked this pull request as ready for review April 13, 2023 16:26
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

Successfully merging this pull request may close these issues.

Middlewares should be lazily loaded
1 participant