@timtutenel/codegen-openapi
v1.3.3
Published
<p align="center"> <img src="https://raw.githubusercontent.com/rtk-incubator/rtk-query/main/logo.png" width="400" /> </p> <h2 align="center"> Code Generator (adjusted by TimT) </h2>
Readme
Introduction
This is an update of the utility library meant to be used with RTK Query that will generate a typed API client from an OpenAPI schema. Note that running tsup is required to build!
Documentation
View the RTK Query Code Generation docs
Additions
We added two small additions to the original package: added option to make all DTO variables required and to convert properties of format "uuid" to a custom Guid object.
Publish to npmjs
To publish to npmjs, increment the version in package.json manually.
Then in terminal (packages/rtk-query-codegen-openapi folder), run:
yarn build
npm login
npm publish --access public