Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.15 KB

File metadata and controls

46 lines (31 loc) · 1.15 KB

@straw-hat/openapi-web-sdk-generator

Usage

  • Reference guides Please use yarn docs:reference to generate the reference docs.

Before anything, we need to enable the generators, to do that we will create a file in the package root directory following cosmiconfig configuration.

touch openapi-web-sdk-generator.config.yaml

Then add the generators.

// <rootDir>/openapi-web-sdk-generator.config.yaml

generators:
  - path: '@straw-hat/openapi-web-sdk-generator/dist/generators/fetcher/index.js'
    config:
      outputDir: './operations'

Run the generator command.

sht-openapi-web-sdk-generator local \
  --config='./data/openapi.json'

Command Topics

What's next?