swagger-fastify-generator
v5.2.7
Published
generator fastify router and more
Downloads
935
Readme
Install
npm install swagger-fastify-generator
Usage
const { swaggerFastifyGenerator } = require('./generator');
const path = require('path');
(async () => {
try {
await swaggerFastifyGenerator({
projectRoot: path.join(__dirname, '..'),
type: 'full',
isCreatePolicy: true,
isDebug: false,
routerMode: 'decoded',
prefix: '/v1'
});
} catch (err) {
console.error(err);
}
})();
Template files supported
controller.hbs
router.hbs
routers.index.hbs
services.hbs
spec.hbs
{{{stringify @root}}} : to show all data