Fork of ferdikoomen/openapi-typescript-codegen. See that repository for more documentation.
- Headers are always optional, whether the OpenAPI JSON says they are required or not.
- Added an optional config property called ERROR_CALLBACKwhich is a function that will run before API errors are thrown.
- Ability to run code before or after each request using BEFORE_REQUESTandBEFORE_REQUESTconfig
- Run npm testto run automated tests
- If a snapshot test fails due to an intentional change, run npm run test:updateto update the snapshots
- To test local changes with your application, first run npm run build. Then, replacenpx @jegan321/openapi-typescript-codegenwithnode ../openapi-typescript-codegen/bin/index.jsin your application-side script.
- Update package.json with a new version
- npm run release
- npm publish
- Commit changes