@walecloud/fastify-openapi-typescript-generator
TypeScript icon, indicating that this package has built-in type declarations

1.4.1 • Public • Published

fastify-openapi-typescript-generator

This is a fork from https://github.com/quinck-io/fastify-openapi-typescript-generator Contains utilities to generate fastify types from openapi definition for the fastify framework. Particurarly generates routes handlers typed and can be used along with the fastify-openapi-glue package.

Installation

npm i @walecloud/fastify-openapi-typescript-generator --save-dev

Usage

fastify-openapi-typescript --help

Usage: fastify-openapi-typescript [options]

CLI to generate openapi typscript types from openapi

Options:
  -V, --version         output the version number
  -i, --input <value>   OpenAPI specification path, can be both yaml or json (required)
  -o, --output <value>  Output directory (required)
  -h, --help            display help for command
fastify-openapi-route-configs --help

Usage: fastify-openapi-route-configs [options]

CLI to generate route configs from openapi

Options:
  -V, --version         output the version number
  -i, --input <value>   OpenAPI specification path, can be both yaml or json (required)
  -o, --output <value>  Output directory (required)
  -h, --help            display help for command

Package Sidebar

Install

npm i @walecloud/fastify-openapi-typescript-generator

Weekly Downloads

1

Version

1.4.1

License

ISC

Unpacked Size

30.6 kB

Total Files

21

Last publish

Collaborators

  • walecloud