@automatons/parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.263 • Public • Published

OpenapiAutomatons

CI/CD codecov semantic-release npm downloads

What OpenapiAutomatons

This library is a generator using openapi file.

What code can generate?

name language type example
@automatons/typescript-axios typescript client example

Get Started

  1. Install library to your project
yarn add -D openapi-automatons @automatons/typescript-axios
  1. Create settings in your project root
{
  "openapi": "openapi.yml",
  "automatons": [{
    "automaton": "@automatons/typescript-axios",
    "outDir": "src/clients"
  }]
}
  1. Add generate command your package.json
{
  "scripts": {
    "generate": "openapi-automatons"
  }
}

Automatons.json

property type required description
openapi string true This is openapi path. It can be relative or absolute. Also, there is no problem with the url format.
automatons array true This is the property that contains the module.
automatons automaton string true This is the module name. You can embed your own module. It is also possible to include it with a relative path.
automatons outDir string true This is the output directory of module.

Package Sidebar

Install

npm i @automatons/parser

Weekly Downloads

589

Version

0.0.263

License

MIT

Unpacked Size

118 kB

Total Files

211

Last publish

Collaborators

  • tanmen