openapi-gen-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

openapi-gen-typescript

Generate typescript code for openapi.

Usage

gen({
  url: 'https://petstore.swagger.io/v2/swagger.json',
  version: '2',
  outputDir: `${__dirname}/gen`,
});

doc

Param Description
url The url of fetch openapi or swagger data
path The filePath of fetch openapi or swagger data
object The docs of fetch openapi or swagger data
outputDir Dir of output files
fetchModuleFile Fetch impl file path
handlePostScript post script to customize the result
handleGenPath custom generated file path

Readme

Keywords

none

Package Sidebar

Install

npm i openapi-gen-typescript

Weekly Downloads

8

Version

1.0.3

License

Apache License 2.0

Unpacked Size

92 kB

Total Files

43

Last publish

Collaborators

  • jinkerjiang