@jegan321/openapi-typescript-codegen
v0.25.3
Published
Library that generates Typescript clients based on the OpenAPI specification. Fork of ferdikoomen/openapi-typescript-codegen
Downloads
120
Maintainers
Readme
OpenAPI TypeScript Codegen
Fork of ferdikoomen/openapi-typescript-codegen. See that repository for more documentation.
List of changes
- Headers are always optional, whether the OpenAPI JSON says they are required or not.
- Added an optional config property called
ERROR_CALLBACK
which is a function that will run before API errors are thrown. - Ability to run code before or after each request using
BEFORE_REQUEST
andBEFORE_REQUEST
config
Testing
- Run
npm test
to run automated tests - If a snapshot test fails due to an intentional change, run
npm run test:update
to update the snapshots - To test local changes with your application, first run
npm run build
. Then, replacenpx @jegan321/openapi-typescript-codegen
withnode ../openapi-typescript-codegen/bin/index.js
in your application-side script.
Release
- Update package.json with a new version
npm run release
npm publish
- Commit changes