km-swagger-to-km-api
v0.0.6
Published
convert swagger json file to km-api config.
Maintainers
Readme
km-swagger-to-km-api
Description:convert swagger json file to km-api config.
Installation
Use the package manager npm to install km-swagger-to-km-api.
npm install km-swagger-to-km-apiUsage
// example of use with external path
const swaggerPath: string = 'https://example/.../swagger/v1/swagger.json';
kmSwaggerToKmApi.makeApiConfig(swaggerPath, '/src/swagger', {
pathScope: 'repository',
saveInCache: true,
loadFromMainPath: false,
});
// example of use with internal path
kmSwaggerToKmApi.makeApiConfig('/src/lib/swagger.json', '/src/swagger', {
pathScope: 'repository',
saveInCache: true,
loadFromMainPath: false,
});dependensies
Required Dependensies is ZOD,km-api , km-api
