Describe the bug
#921 changed the signature of the resolver function from
to
resolver: (
handlersPath: string,
route: RouteMetadata,
apiDoc: OpenAPIV3.Document,
) => RequestHandler | Promise<RequestHandler>;
This breaks backwards-compatibility as Express request handlers can also be arrays of request handlers.
I believe the signature should instead be
resolver: (
handlersPath: string,
route: RouteMetadata,
apiDoc: OpenAPIV3.Document,
) => RequestHandler | Promise<RequestHandler> | Array<RequestHandler> | Promise<Array<RequestHandler>>;
Unfortunately more tweaks seem to be required which I haven't found the time to investigate.
Describe the bug
#921 changed the signature of the resolver function from
to
This breaks backwards-compatibility as Express request handlers can also be arrays of request handlers.
I believe the signature should instead be
Unfortunately more tweaks seem to be required which I haven't found the time to investigate.