Closed ivan-tymoshenko closed 1 year ago
First of all, thanks for your work. Great plugin!
My suggestion is to add a second possible return type for operationResolver to pass a route options object when it's needed.
operationResolver
Example:
{ operationResolver: (operationId, method, openApiPath) => { return { logLevel: 'warn', version: '1.1.0', handler: async (req, res) => {} } } }
Tell me if those changes are welcome, I will open a PR.
Hi,
sounds like a good addition ! Happy to receive a PR :-)
Kind regards, Hans
Thanks for your contribution! Released as 4.2.0 on NPM.
First of all, thanks for your work. Great plugin!
My suggestion is to add a second possible return type for
operationResolver
to pass a route options object when it's needed.Example:
Tell me if those changes are welcome, I will open a PR.