@frysztak/openapi-generator
v0.1.2
Published
Node.js wrapper for OpenAPI generator written in Haskell
Downloads
1
Readme
Node.js OpenAPI Generator wrapper
Node.js wrapper for OpenAPI Generator.
Install
$ yarn add -D @frysztak/openapi-generator
or
$ npm install --save-dev @frysztak/openapi-generator
Usage
Create .openapi-generator.json
in your project root. Sample file:
{
"generatorVersion": "0.1.0",
"inputFiles": ["src/api/Admin.json", "src/api/User.json"],
"outputDirectory": "src/api/clients"
}
Add the following to your scripts
section in package.json
:
"scripts": {
"gen-api": "run-openapi-generator generate"
}
Supported subcommands
generate
- generates clients. Args:--config
(-c
) -- path to.openapi-generator.json
config file. Optional, defaults tocwd
.