I recently started learning swagger for a nodejs express application. As I understand it, swagger is a kind of structure that requires conventions to be executed in a nodejs express application. Swagger automatically maps routes to controllers.
But I feel that I have lost the ability to enter middlewares, for example, an authentication passport, which can easily be added to user routes.
I know that there are ways to introduce averages with swagger, but for some reason I feel that this is not as natural as without swagger.
Is it possible to use swagger with minimal swagger related components in my code - perhaps only with the swagger.yaml file?
I want to avoid the req.swagger.param code and want to use the standard way of determining routes and injecting middleware.
kiran source
share