- 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'
sht-openapi-web-sdk-generator help
- Display help for sht-openapi-web-sdk-generator.sht-openapi-web-sdk-generator local
- Generate the code from a local OpenAPI V3 file.