Closed Innders closed 1 month ago
This is related to an issue from oazapfts dependency.
They already solved it, and it is available on v6.0.6. However, the dependency is on version v4.8.0. So, there's a need to update the dependency.
There's already a PR to update it, but it seems that no one is taking care of it.
Oh sorry I missed the PR, thanks! At least this issue might come up in a google search now for someone like me....
Should be live in https://github.com/reduxjs/redux-toolkit/releases/tag/%40rtk-query%2Fcodegen-openapi%402.0.0-alpha.0 ! Please try it out and let us know if it works.
Please try it out and let us know if it works.
I can confirm that this fixes the issue! Thanks 💯
When I try to run
npx @rtk-query/codegen-openapi openapi-config.ts
I get the error:openapi-config.ts
If I exclude a specific endpoint
filterEndpoints: [/^(?!.*sitesync).*$/i]
then I don't get this error and everything is great.The endpoint has a negative enum value (-1) and I believe this is the cause of the error.
I found a similar issue report for this negative number error here (not sure how related it is): https://github.com/hey-api/openapi-ts/issues/466#issuecomment-2069303641
It doesn't look like openapi-ts is being used but maybe this is still helpful.