express-openapi-validator
express-openapi-validator copied to clipboard
Middlewares should be lazily loaded
Describe the bug The middlewares when not being used are still imported into memory and unnecessarily take up time loading.
Expected behavior Only the middlewares that are going to be used should be imported.