docs.nestjs.com
docs.nestjs.com copied to clipboard
docs(openapi): prefer lazy over eager creation of the document
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/nestjs/docs.nestjs.com/blob/master/CONTRIBUTING.md
PR Type
What kind of change does this PR introduce?
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [x] Docs
- [ ] Other... Please describe:
What is the current behavior?
NestJS does not use the new feature of lazy initialization of Swagger, which adds some time to startup.
Associated with https://github.com/nestjs/swagger/pull/2392
What is the new behavior?
Now, by default, we use always the lazy initialization in favor of the initialization speed.
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Other information
This linked PR:https://github.com/nestjs/swagger/pull/2392 is associated with this one and has been merged, so I would say merge this as well, right?
I guess we can merge this now :smile_cat:
@kamilmysliwiec Can we merge this PR, this change was merged a long time ago.