UNPKG

@walecloud/fastify-openapi-typescript-generator

Version:

Contains utilities to generate fastify types from openapi definition for the fastify framework.

37 lines (27 loc) 1.26 kB
# 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](https://www.npmjs.com/package/fastify-openapi-glue) package. ## Installation `npm i @walecloud/fastify-openapi-typescript-generator --save-dev` ## Usage ```sh 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 ``` ```sh 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 ```