Skip to content

Commit b0e93cd

Browse files
committed
docs: update instructions for devs
1 parent 410fda9 commit b0e93cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ npm install
4949
npm run build
5050
```
5151

52+
### Updating the generated client
53+
54+
To update the client, you need to `npm run gen` npm script. This will fetch the latest version of the OpenAPI spec and generate the client. However, openapi-generator-cli does not currently generate the client code with proper import syntax. So you must modify the imports in `generated/fetch/**` directly, or just `git checkout -p` to remove the invalid import path changes.
55+
56+
If you need to modify the generated code's import paths, you will have to run `npm run postgen` manually.
57+
5258
### Contributing
5359

5460
See [CONTRIBUTING.md](CONTRIBUTING.md).

0 commit comments

Comments
 (0)