You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ferdi Koomen edited this page Dec 21, 2023
·
1 revision
By default, this tool will generate a client that is compatible with the (browser based) Fetch API.
However, this client will not work inside the Node.js environment. If you want to generate the Node.js compatible
client then you can specify --client node in the openapi call:
This will generate a client that uses node-fetch internally. However,
in order to compile and run this client, you might need to install the node-fetch@2.x dependencies.
Since version 3.x node-fetch switched to ESM only,
breaking many CommonJS based toolchains (like Jest). Right now we do not support this new version!