-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codegen OpenAPI: negative numbers cause error #4455
Comments
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. |
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): hey-api/openapi-ts#466 (comment)
It doesn't look like openapi-ts is being used but maybe this is still helpful.
The text was updated successfully, but these errors were encountered: