pgfy
Version:
A Node.js Toolbox for API and Microservices development.
29 lines (26 loc) • 554 B
JavaScript
function main(api, componentName, schema) {
/*
Fastify: Validation and Serialization document
https://www.fastify.io/docs/latest/Validation-and-Serialization/
*/
const swagger = {
jsonSchema: schema,
hideFields: [],
helloWorld: {
schema: {
description: 'helloWorld',
tags: [componentName],
summary: componentName,
params: {},
body: {},
security: [
{
Bearer: [],
},
],
},
},
};
return swagger;
}
module.exports = main;