Closed MarcoPasqualini closed 7 years ago
I'm so sorry for this bug in version 1.0.0 Do you install without next tag? The lastest tag is version 1.0.0 and there is some bug. Please install as the Installation doc
npm install koa-oai-router@next --save
Why not use koa-views? I rename render to renderSwaggerApiExplorer of koa-views to avoid the side effect when the pages render function calling.
I'm so sorry too, I missed that installation note. Now everything works fine, thank you
Missed as well.
Hello, First of all, I wanted to excuse myself for my terrible english and the quality of this issue.
While testing your module for my work project I bumped into this error, while requesting the docs/swagger-ui page:
the error is generated at
./koa-oai-router/lib/oai-explorer.js:24: await tx.renderSwaggerApiExplorer('index', options);
ctx.renderSwaggerApiExplorer
should be provided by the koa-views-swagger package but looking at it, the function exposed is, instead,ctx.render
In fact after correcting the name of the function everything was working correctly.